Resolve issue where ARGV not assigned correctly if specifying a branch.