fix shell syntax in set_roots

The git-filter-branch script assumes Bourne shell syntax, not bash
syntax. Fix the conditional generated for set_roots so it works under
old-style Bourne shell.

Change-Id: I75350f5f20a7bccf76d35d803cae2eb6827292a5