Install java-common package if it is not already installed

The command update-java-alternatives is required by the script but it is not automagically installed on any ubuntu distribution and depends on java-common package.