Add switch to checkout right branch - defaults to master

See #466.