Fixed bug with saving auto-save and backup files to /tmp.