Remove archaic use of stat