Fix #785: Fetch scenario blows up when branch name matches folder name