Fix running executables that are not built in the CWD and create the target path if necessary.