Few more fixes to be able to run the script on the grid
Fix bug in scoring when using the gridtk