Fixed wrong directory deletion error