Fix a bug with bases with spaces.

New indexing would crash if there was a space in the base path name.