Parse file path correctly to construct repo request with token

This allows the use of files in repos with authentication. The previous
url construction for github api requests did not correctly construct
query params to authenticate and so very quickly hit the github rate
limit.