Replace ':' with PATH_SEPARATOR

PATH_SEPARATOR is ':' on most systems, but that is a valid character in Windows filepaths, and Windows uses ';' instead.