Fix 'getModTime' with base < 4.5.