add pwent->pw_dir to logmessage.

inspired by Bug #557