support slightly non-standard output file names/dirs