Use the correct function to rm directories.