add script to fix up registry ip in template json

i prefer $() or make it as env car to make it more readable, otherwise LGTM