Set environment variables earlier