fix majdistrelease detection