Allow `current_branch` to be used in subdirectories of a git repo