Cut down on more code duplication in libretro-build-common.sh