Autogenerate and use a swap file