fix nasty spawn error when executable cannot be resolved