Correctly handle repo urls not ending with /