Fix bug in bug-fix releasing
Refactor branch sorting
Use master as base branch