Making it work with all versions of pyfits.

pyfits 3.2.? has a slightly different sytax for cards.