Save before running if the file exists on disk.

Fixes #7, #16, #18