ledger: fix --HEAD for OS X 10.9

Closes #23670.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>