Fixed some unit tests and made a minor armoryd change

backupwallet() will now write to a file only if the file doesn't exist
when the function is executed.