[MacPorts] #47784: Fix post-build bug in the swi-prolog port