Move exclude before directory create