Update of hook_entity_info
Fix libraries version comparision

If user uses libraries 7.x-2.0-alpha5 for example, it will be regarded
less than 7.x-2.0.