Added crossplatform EOL to the directory parser