Give some more control over build process

- Generate a version number even for git repos that have no tags,
- Allow (somewhat hacky) use of tarball source,
- Allow manual specification of archive type (mostly for use with tarball source),
- Allow manual specification of COPYRIGHT.