Add ability for the build to replace env specific host

The host changes depending on the grunt build command, and to stop us
always manually changing it it will be replaced automatically