Modified emacs-format.sh script so that it does not need to be run
from the root of the source tree. It does mean bash is required
though.

We should probably just use clang-format instead of this script...