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.
Merge pull request #5537 from VojtechVitek/fix_enable_modules

Merged by openshift-bot