fanotify: Fix up scripted S_ISDIR/S_ISREG/S_ISLNK conversions