prompt: Use rev-parse instead of symbolic-ref

Older versions don't support --short, which causes this to fail.