Fix usage of trim.
Check archive size before extracting, caught invalid archives.
Fix GitHub resolver not trimming .git in the repo name.