add git branch checking function
check if 'detached from' tag text
use _is_in_branch function for release