Improve git tag detection + use dev if no tag