In configure_dovecot() the installer is creating master.cf~2 however the check is for master.cf!
configure_dovecot()
master.cf~2
master.cf