BUG 15153 Call to undefined function SOLVED

- The pmFunctions from the plugins not loaded before include pmScript class
- Change the includes order of the related classes
Merge pull request #2468 from julceslauhub/master

BUG 15153 Call to undefined function SOLVED