Step over if filepath is a dir

If a filepath exists, but it is a directory (for instance: ``shepherd.js``), the task will ignore it.