chore(build): fix release script bugs