Fixed some issues related to temporary file handling. Made it easier to use the building definition file settings dialog.