Use replace module instead of shell to sed

* This also gets rid of the {{ warning

Change-Id: If548bbf930631ad121f915892f418edaf7ba64c8