Silence 4.2 deprecation warnings

We can't just switch to /Elements/EditCustomFields and remain 4.0
compatible, so we have some shenanigans to figure out what version
we're on.  /Elements/EditCustomFields didn't exist in 4.0 which makes it
easier.

See also rt-extension-customfieldsonupdate.
Silence case sensitive search warnings