Fix typos and replace statvfs call with fs_capabilities()