am_check_permissions() env. variable mapping fix.