Exact penalization via Dini and Hadamard conditional derivatives