Expand environment variables and tildes passed to commands generically across the board.