make.go: pull cleanGoEnv out into a function