fix version check for macosx
check environment during both dependencies and helium premake directives