Using correct directory name for csv output.

Fixes #23.
`os.path.basename(inputDir)`