If only one arg supplied, write output file to same directory as input
Authored by: plexilcrf 2010-07-30
Parent: [r1457]
Child: [r1459]