Distinguish between BSD an GNU/Linux stat implementation