fix path of tmp files