Better detection of the master branch