improved apparmor detection