fixed 'undefined' bug (2)
removed unnecessary writeln()
added support for GOPATH configuration