Fix bug with filename output to xmf resulting from not using sub-dir.