add the option to have a different archive name.
Merge from keeb/bender:fix-archives
Fix archive log saving

Use file.write() instead of print >>, adopt in new code sections