Get version in a more generic way