This change ensures the file extension is added when renaming
Merge pull request #2 from adneal/rename

This change ensures the file extension is added when renaming