generate last_config.sh shell script in config-impl.py