fix bug dealing with paths in windows. tests pass.