Bump version to 0.9.0.

1.0 will only be released after we stabilize the plugin interface.
Fix typo in version code.

If it's a tag, just return the version, and not the SHA1.