fix package script's use of uuencode
fix an infinite loop bug in MgFindScrapFileGroup