Properly pass cwd, runas, and shell through in _run_check(), Fixes #4825
Merge pull request #4931 from basepi/runcheck4825

Properly pass cwd, runas, and shell through in _run_check(), Fixes #4825