NXP-13826: fix bugs on jenkins release bash script