Fix for Jenkins in MainScript