Fix creating of java dir for generated file