Moved a check in HostGetOpt.h.
It can be used in multiple files now.