Less crude way of finding version