change ndk directory handling