I just upgraded to 2.4.1 and today I created a homework set with a .def file I've been using for a number of years. However, after importing the problem set from this .def file, the problems are showing up with unlimited attempts. I checked on the "Set definition file format" page and I think the format is the same as for previous versions of WeBWorK. Here is a line from my .def file which, I think, should limit the number of attempts to 3:
setStatistics_Ch01PicturingDistributionsWithGraphs/dm1_1.pg , 2 ,3
--rac