Do the DIRS_TO_IGNORE thing correctly.