fix output filename.
remove unnecessary variable.
Merge pull request #61 from hansode/fix-output-filename

Fix output filename