feat(deploy): optimize deployment scripts with smart config updates