fix tool to get gerrit server
fix tool to get gerrit server

The tool could not handle extra whitespace at the end of the line.
Also, if it did not find the hostboot server, it would end up using
the very last host in the config file.

Change-Id: I7975d598bfb3779bcb2ca33526597c20b29e6f4c
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/90163
Tested-by: Jenkins Server <8e3f934e4c44875bc48d33da3ea13d93ba9a233f@us.ibm.com>
Tested-by: Jenkins OP Build CI <e610bd72261d3c0a48f1e8ae36832ab00774d426@us.ibm.com>
Reviewed-by: Caleb N Palmer <4dd1938fbd016e66315ec83516544b027a7e47e1@us.ibm.com>
Reviewed-by: Brian J Stegmiller <4c05ea37f9d6efb9a2c94995009b8b66580a4c01@us.ibm.com>
Reviewed-by: Benjamen G Tyner <506b6a2e26cca05d0eb1ae91301b5a4a8d39199d@ibm.com>
Reviewed-by: Zane C Shelley <fc96e127d170d6ac0b2af86a8a56f95974ff36e8@us.ibm.com>

open-power/hostboot,open-power/hostboot,open-power/hostboot,open-power/hostboot,open-power/hostboot