CBQE-1243 Fix bug for script auto staging

Change-Id: I75fc49ff00b04a62d84328a18e5b9975eebbba58