Removed if else from rm_dir.