fixed the output base name for partitioned files