Fix a bug that caused fstat to fail

Wrong fd was being passed to sysfstat. ls '#p' now works again.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>