fix inconsistent usage of DIRECTORY_SEPARATOR causing errors on windows