Added the directoryName comparison to the name constraint checks.