fix bug in emitting on .** path patterns