Fixed a small error due to dirnames ending or not ending with a / when defining _HTTP_URL