convert generic filesystem exceptions to ours

Signed-off-by: Jan Dvořák <mordae@anilinux.org>