Fix remove command's maxdepth