use the correct CWD for shell commands