Fixed a bug related to the external node.

We were checking for the first index of 'geoserver' when we should be checking for 'geoserver/' because the external node url includes geoserver in it.