removing redundant tmp directory