Adding a check for gofmt and golint to tests

and fixing things accordingly to make gofmt and golint happy
Accounting for the case where there are multiple entries in the GOPATH

(by using only the first)
Oops, missed changing this variable name
Merge remote-tracking branch 'origin/master' into add-linting-and-fmtpolice-to-test-suite

Conflicts:
	build_test.go