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

...y name