Update repo url from github and handle trailing slashes, refs composer/packagist#354 refs composer/packagist#423