fixed modules compilation
fixed FileExistsError handling