Revert user.Current().HomeDir to os.Getenv("HOME")

user.Current() requires cgo and thus doesn't work with cross-compiling.
This appears to be how the Heroku Toolbelt works, though per @fdr it may
not be correct for all cases (when users have modified their home dir).

We will address those issues if/when they come up.

Also moved these functions to util.go