fix that Git#checkout will work with :new_branch

this small fix, will makes Git#checkout work if :new_branch is given as an argument, like

git = Git.open 'path/to/repo'
git.checkout 'branchName', :new_branch => true