Set a central swap file location and use environment variables rather than absolute paths