Fix remote URL detection regression