Remove Mac platform check in _array_to_file

This is the fix proposed by @embray in #2345.