Various bug-fixes with kernel installs.

Fixed a typo causing grub list to not incrament and other issues
with finding a reliable uname string via inspecting RPM directly.

Signed-off-by: Sandon Van Ness <sandon@redhat.com>
Yes:

>>> test = StringIO.StringIO()
>>> test.write('This is a test')
>>> print test.getvalue()
This is a test
>>> print test.getvalue()
This is a test