Added utility function to find the max modification date