Check function existence instead of shell version.