Use environmental variable instead of `~`.

Use the environmental ${HOME} variable, in place of `~`, for adding the
user's local binary path to their PATH variable. Not all application's
can expand `~` correctly.