skip directory.

In most case, directory is executable. so, I thought need to check directory to prevent miss detection.