Changed directory separator logic