AF-1597 Fix expanding port variable via erb template.