Fix segfault in fs_stat

Fix #34

Maybe there is a better way to fix it though. Still, this works.