Added support for absolute paths and fixed a bug when generating output file names when there were non-filenames on the command line.