Fix issue 6800. cwd=target was being passed to _run_check which blew up if target dir did not already exist.
Merge pull request #7153 from dlanderson/fix_issue_6800

Fix issue 6800. cwd=target was being passed to _run_check which blew up ...