fixed some minor errors with config variables

The README was wrong, it said to create a ``MATH`` config variable when the code was actually looking for ``MATH_JAX``.  I fixed that, and also changed the type checks to use ``basestring`` instead of ``str`` - it wasn't working for me because the strings were unicode strings