Move platform/architecture detection into libretro-config.sh