Fix Windows path problem that causes swift segfault

Windows has a 260 MAX_PATH limit. If swift tries to operate on a file that exceeds this path length, it will fail and raise a segmentation fault. This PR fixes this problem.