Update the logic of console

1. Check the ndk version before ndk-build.
2. Find templates path in an order.