Backup replaced files and only stty during terminal sessions