Check different URL formats

As Bakatsuki unfortunately uses at least two different URL formats, we need to check both
and use the one that works.