check presence of current working directory at the end of run_shell_cmd
and try to return to original working directory if non-existent
#4608
Loading