Made build.sh directory agnostic.
Only call onResumeGame when activity isn't finishing yet.