Fix case sensitivity in rescue of exceptions

As this can differ across platforms.
Merge pull request #27 from alphagov/fix-case-sensitive-rescue

Fix case sensitivity in rescue of exceptions