fix line endings issue

An error occured on my system, when using files with Linux line endings on my Windows system. With using PHP_EOL to split the file I got one long string as useragent which didn't match anything.

The `array_unique` call is to make sure each useragent is only tested once.