Fixed archiver error if temp_dir doesn't exist.
Set locale earlier during init.

May fix #194, if it's the settings file path that's causing the issue.