Fixed swapfile error on Windows