replace / with DIRECTORY_SEPARATOR