On Dwork cohomology for singular hypersurfaces