Make sure proper environment is loaded.