fix unpacking github archives