build.gradle: packageNameSuffix is now deprecated, move to applicationIdSuffix instead
jni/build.sh: use POSIX-compliant syntax for function declarations

The `function` keyword is not recognized on many variants of the bash shell (on the OSX shell, dash shells, maybe zsh. Strangely it isn't recognized on my Ubuntu 13.10 shell either).
Use the POSIX-compliant syntax instead.

e.g:
function soemthing {...} --> something() {...}