fix incorrect python module deps processing in installer plugin

While wandering over source code, I found an obvious bug in module dependency processing in installer plugin. The fix is in the PR.