corrected basename variable to always only ouput basename without extension
Merge pull request #183 from jonschlinkert/master

fixed basename