Make dkms.conf static and version.sh a bit more robust.

Resolves #21. Also make version.sh to work without git and not depend on
bash.