Be a bit smarter about setting up the environment.