Clean up the fstat code a little, to make it easier to understand.