fix path to tmp directory