Save file when autofile is enabled (with debounce)