update swap directory setting