fix branchesDirectory