BLD: fixed file modes
Merge pull request #2920 from pydata/modes

BLD: fixed file modes