Fixed issue with backupdir and swapfile directory