tweaks to shell command for setting current dir