Fix checking remote branch bug

Use 'options.branch' for default value of 'options.remoteBranch'.