make "rebase.sh" script independent of "rebase-second.sh"

Signed-off-by: Marian 'VooDooMan' Meravy <vdm113@gmail.com>