Fix to directory exclude system.