Bug 1112216 - Match specific php module filename

Fix possible prefix/substring bug. Distinguish `foobar.so` vs. `bar.so`.
https://bugzilla.redhat.com/show_bug.cgi?id=1112216

Originally found by @Miciah Masters.