Revert "check environment during both dependencies and helium premake directives"

This reverts commit fdde02c7f07902b8ed4c499f3a07cb1bef40db59.
Revert "tidy up extra dependency check body (oops)"

This reverts commit 441e0ac6924beb24b0e0dec9385b498bf5a31c5d.