Make expandvars accept both $VARNAME and ${VARNAME} now matches
the behavior of posixpath.expandvars
Allow overriding the environment variables to_cmdline expands against
Make expandvars accept both $VARNAME and ${VARNAME} now matches
the behavior of posixpath.expandvars
Allow overriding the environment variables to_cmdline expands against