Don't use of pwd

As /etc/passwd shouldn't be read, pwd can't be used. We use $HOME value
instead.
Merge branch 'dont_use_pwd'