It seems we shall refactor the code to use DIRECTORY_SEPARATOR in all cases instead of using ". '/' .".