fix: upgrade server wouldn't be properly detected if a / was missing in url