When not precompiling make sure the environment variable gets set as early as possible.