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 #5544 from VojtechVitek/fix_enable_modules_to_stage

Merged by openshift-bot