Modified checkoutAndPackageApp script