Improve get-gingko script.