fixed apparmor script (/dev/shm) and appdata initialization