don't try to run directories if they are in the path