Made pre_exec argument behave properly when nil

For tests, don't use a run directory that the exec host probably can't see
Merge pull request #9 from keithj/devel

Made pre_exec argument behave properly when nil