export gopath only when dir exists