Fix a few problems with snippet checking.
Make snippet checking more lenient by only checking the programlisting.