This is the same wrapper as what the ndk uses for selecting api level. This fixes https://github.com/termux/termux-packages/issues/7232 and https://github.com/termux/termux-packages/issues/7839.