Removes trailing slash in baseurl