Refactor /usr/lib/jvm/default-java symlink creation, add tests