minor refactoring

* function to decide which dasmaps filename to use
* write output of update scripts to logs
* other minor refactoring