tools/utils: unify extend scripts.