Correctly determine paths and working directories

Paths are based on $GOPATH, fixes #94
Merge pull request #95 from wongak/94-makego

Correctly determine paths and working directories