improve go generate: support build in any import path.