Make sure directory exists before doing git-branch check