Fix the backup and swapfile directory issues.