Move platform/architecture detection into libretro-config.sh

I did my best to clean out all files that use these detection systems to put them into ``libretro-config.sh``. I am not sure that this script is the best place for them, but it will at least clean up several of the other scripts.