Parse file path correctly to construct repo request

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