Makefile: manage extension version.

An optional VERSION variable can be passed to the make command:

make [install | zip-file] VERSION=27

This updates the corresponding metadata and appends the version to the
generated zip-file. If no version is provided, the version in metadata is set
to the SHA1 of the current commit.