Fix actually checking the env vars