temp directory deletion fixed