fix for double slashes after domain if no directory is presented