sh: only change to user's home directory in login mode