Use a better method for determining the perl version after recent changes to perl in the FreeBSD ports tree