Added manual deletion of temp-dir