fixes in tools/config.py and tool/init_medb.py for using ENV (for docker)