Only display environment warning if env actually passed