Added an option to checkout master branch if you specify --tomaster=true