feature #1782: datastore stat compatible with both GNU and BSD stat