chore: make compare-master-to-stable script more flexible