Use PATH_SEPARATOR instead of a /