- perhaps move to use grouped matches (like https://pypi.python.org/pypi/glob2)
  and use that instead of the "split_prefix" hack...
