fix rehash when paths have spaces in them

fixes #450