This regressed when porting find_compiler.sh to python.
Support was unknowingly dropped when porting ladybird.sh to ladybird.py. This tentatively restores this support, but is untested on a BSD system.
This will be needed by other scripts. To do so, this patch gives up on the importlib method of importing packages. I tried extracting this helper to e.g. __init__.py, but the python runtime was unable to find the imported symbols.