Upgraded regex for ACLs to handle multiple lines.
Refactored ACL checking code.