Factered out getting current releases
Added new method to find the current branch