Fixing tmp directory