Fixed a bug that happens panic because not work user.Current().homeDir when without cgo.