Don't save if unmodified and dirtyWrite is set

 #7