Fix the exposed bugs in PermissionMap. Add an exception for parse errors in the permission map file parser, as SyntaxError is not the correct exception.