Correctly determine paths and working directories

Paths are based on $GOPATH, fixes #94