Fixed whoops with working out parent branch name