Adapt java_home before launching idea