Several updates

- Fix Java 6 installation
- Fix $PARAM not being triggered at downloading packages
- Update Android SDK version