Set shell as 'bash' in Makefile.

This was causing a few problems with some of the statements.
Debug R code to generate MC tables

Formatting in the MC tables was broken, this commit makes some minor changes
to the code that seem to fix the formatting problems.