The extra calculations here are only needed during the check-sanity
phase. This is eliminating unneeded CPU during other phases but also
avoiding some CURDIR/../../Mk/bsd.port.mk lookups when not using
DEVELOPER which can cause contention during some Poudriere runs.
Reported by: mjg