Fixed another bug in nightly jenkins script