hack/install.sh: install apparmor when enabled

This PR changes the install.sh script to install the apparmor package if apparmor is detected as enabled on the kernel. Making this change would help solve many apparmor related problems.

Fixes #4608
Fixes #7008