Don't show validation errors when in unit test mode.
Improve GOROOT/GOPATH missing vars handling.
 Refs #422