Auto-determine FreeBSD package prefix from version
If the php version has been set in globals, use it to determine the
default package prefix on FreeBSD.
This should be a compatible change, since the package prefix can still
be overridden, and has to match the selected version anyway.