added a log of pwd for a command that is acting weirdly.