Use basename instead of full path of input files to make output directory name
Merge pull request #3 from martinghunt/master

Use basename instead of full path of input files to make output director...