Remove unused code in main.m / minor adjustments in LGAutoPkgTask