Updated configure to check for more dependencies

Now checks for emacs, bison, gperf, flex but only if the code is from
the github repo and not a tarball.

Fixes issue #1