Get branch name from environment