Misc. changes. Change paths of temp files. Make tools more envrionment independant.