fixed replacing values in mcmod.info.
made the script more modular