Fix 'fatal: not a valid commit' when doing trex-went-backward check