Use "rev-parse" instead of 'glob to find remote branches

The old method missed packed refs.