Fixes to startup scripts for logging.