Fix usage of stat vs statfs
Fix stat usage