tests now pass on windows

nit: wouldn't this be better as a small fn? `escape(profilePath)` or something?