Fix github enterprise — be able to provide a path prefix (2)

As I've seen no progress in #106 , I've created a new PR with the same contents plus the fix that @mikedeboer pointed out.

I've tested it against a github enterprise instance and it works correctly now