Replace File.separator with Path.SEPARATOR