updated core for getFileSeparator() and use this function