build-ndk-stack.sh: Fix the script
David 'Digit' Turner authored
This makes the script work again. Also adds --package-dir
and --ndk-dir options to it.

Change-Id: Ib50d169dabdfc40a3875163e1517b8d6b3269447
d9bb7ebc