Check for hostname

You can enter the Djatoka URL as a path or full hostname. I did hostname and didn't get any error. But this function assumes it is a path and sticks http(s)://<SERVER NAME> in front.