only chdir when building a non-gopath package