chore(build): correct and refactor release script