Fix github api requests

Use agent header is now mandatory
Fix relinking issues
Only filter by commit hashes if a hash file exists