No need to expanduser() command's chdir argument twice
Merge pull request #3049 from stoned/cmd-expanduser-once

No need to expanduser() command's chdir argument twice