Added error checking for migration NzbGet code.
Fixed migration code on how it writes backups and new config files.