set the directory of the swap file