Checkout branch after copy. Fixes #78