Nonpathological Lyapunov functions and discontinuous Caratheodory systems