Make rebase script more readable.

Change-Id: I94f8e118505fc5895070b71d921b1d06f18b5471