Added checks on the ignored directories.