Make `make dist` work correctly.

Maybe this is not too important as it appears you're using GitHub's release machinery. In any case, this fixes the automake setup so that running `make dist` correctly builds a tarball out of the source tree.