fix leading slash issue in baseurl variable