Added backup of modified file (and made compatibility checking clearer)