Update misc.sh

Fixed permissions on audit rules and added checks for file ownership by group and user (will default to root ownership if not found).