Fixed check for files
Fix backup edge case

The check to establish what to do if the user wants to backup files was
in the wrong place.