build: Only use PKG_INSTALLDIR if available