Fix build.gradle project env check