Clean up repos code and auto-detect all ace supported modes