improve(script): reduce functionality to just influence osx system java setting