more informative error message if the run command fails
is this more os neutral?

(probably)
Safer directory creation.
Merge remote-tracking branch 'upstream/master'