Added code to allow passing in 1.6 or 1.7 for java version on Redhat os ...

Have updated to allow you to set the version 1.6 or 1.7 form the java you want to install.
I think this will cover issue #40 and #43.