Make File#rename work as expected when destination directory does not exist.
Merge pull request #240 from paologianrossi/fix_rename_edgecase

Make File#rename work as expected