Make join_ident_hash work even if versions are integers

Fix `TypeError: sequence item 0: expected string, int found` for this
line:

```
version = VERSION_CHAR.join([x for x in version if x is not None])
```

This fixes the failed test in Connexions/cnx-publishing#30