Use a more portable stat call