[Change] deploy script refactoring