Accept non-dirname matches if nothing else matches