Ensure that ~/.jdk_switcher_rc doesn't contain 'sudo'