added extra control to avoid troubles with runinput files on the matlab path