Checkout and pull the correct branch on deploy