Fixed "master" branch detection