add grub2_available function to simplify install module

Change-Id: I74e68bc015fbeb5ed43693298fcceca5e7a67f1d
Signed-off-by: Joey Boggs <jboggs@redhat.com>