Revert "Simplify bsdmake wrapper"

Fixes #34713.

This reverts commit e4461afd36f04b1cd3cf56ec0636202150ce0570.