Update the logic of console

1. Check the ndk version before ndk-build.
2. Find templates path in an order.
c++ 11 regular -> c++ 11 regular expression