prevent permission denied failure

avoid accessing login user's home directory

#1864
#issuecomment-40570064