Revert use of putenv and hardcode values to allow testing on Travis CI.