Fix build checks for non-master package branches.