Change Travis CI script to run make distcheck
Do not touch version-vcs.h if we are not in a Git repository

This fixes `make distcheck` which previously failed on the
`gitversion` rule.
Makefile.am: Add rule so make knows how to generate version-vcs.h