added filename pattern for "directory has" expected condition