Clean up builtin-update-ref's option parsing