Fix temporary directory