Detect Openshift environment [GRADLE-2871]

http://issues.gradle.org/browse/GRADLE-2871 
See also : https://github.com/gradle/gradle/pull/242

Changes as per recommendation from Adam. Very minor.
There should also already be a CLA from me from several years ago - if you can't find it, let me know.