init script: don't try to run on Java 5

Jenkins now requires at least Java 6. Version 7 and 8 should also work.
Merge pull request #1400 from msrb/rpm-init-script

init script: don't try to run on Java 5