XD-958 Fixing path for tmp directory