I don't think you will have to touch the horseshoe or rag material. A rat tail file, chain sharpening file or dremel should work on the sprocket(it is not hardened).
Most important, keep it as true as possable while tightening the bolts. Also be sure to check the sprocket teeth, they are usually just punched out. The teeth may need to be tapered, do this befor you mount it.