Fixed failure to initialize repository with spaces in the path, plus a unit test.