fixes #2738 - handle multiple dynamic modulepaths