Work around for cwd stat problems with run_command and sudo

This fixes issue #6443
Merge branch 'patch-1' of https://github.com/dmkoch/ansible into dmkoch-patch-1
Make sure the cwd exists in run_command before trying to use it