Changed /bin/sh to /bin/bash so it will work on Mac OS.
Fixed error from making index.