Update build-java-android.sh

- Improve logging of ensure_package_manager
- Simplify package_manager_not_available