config: trim repository's trailing slash