Corrects java dir in control