Fixing the os stat test.
Merge pull request #2222 from openscholar/2220

Fixing the os stat test.