Lots of fixes:
 - Add RenameFile and RenameDirectory.
 - Add DeleteDirectory.
 - Fixed CloseArchive.
 - Misc sdmc fixes.