Run set-env-java-home only if necessary

http://tickets.opscode.com/browse/COOK-2083