Use the *search* function to detect the pragma

This works for me (while the `silent! ...` approach doesn't).