added a check for http in homepage url, this should fix issue #768
better logic
Merge pull request #891 from tobiasd/check_http_in_homepage

added a check for http in homepage url, this should fix issue #768