Update checkout.sh

fix all known issues