Match directory name instead of whole path.