support trailing / in gopath