Fix bug on the report/syncbranches script to properly get information from remote repository.