Exclude the correct directories.