(libretro-build-common.sh) Cut down on code duplication