Add darwin to if block

Otherwise it would fall into the 'win' else block because strpos($os, 'win') does also match 'darwin' what is the `php_uname` for OS X.
Merge pull request #11565 from owncloud/fix-behaviourOnOSX

Add darwin to if block