fixes dbashford/mimosa#264, handling paths correctly.
references dbashford/mimosa#264, handling output file correctly.