Consolidate normalizing slashes from harness to use it from typescript core.ts