Would better be `s/9001/$AUDIT_PORT/g`.