MAINT: add support for git hash in dev versions.