Module alternatives: support RedHat-based OSes

This is a port of PR #9098 to the new ansible-module-extras repo.

RedHat-based OSes have a version of update-alternatives which comes from the chkconfig package and does not support the --query parameter. This pull request works around that.
Also, update the module to support check mode.