Add cwd path to CmdError (runCommand method). Add checkOut method (wraper around runCommand)