making rm folder work with multiple folders