This should be better : 
```php
$nullFile = defined('PHP_WINDOWS_VERSION_BUILD') ? 'NUL' : '/dev/null';
```

Anyway, I don't know if gnu tar is supported by windows, but it's always good to be compliant