Remove Mac platform check in _array_to_file (fix #2345)