added more stringent checks of go env