t7407: Use 'rev-parse --short' rather than bash's substring expansion notation