Updated to allow modules to do pre-build validation of the environment