libretro clean script improvement