Bug fix causing ssl_host_diff to be true if the ssl_hots did not have a trailing slash.
Removed code duplication.