Fix Bugs for findFilesByMetadata

tolower does not exist. It is just "lower"
use escapedValue['Value'] instead of escapedValue['Value']['Value'], which the assignment did.
More bugs

Note for line 328: There seems to be something wrong there. "meta" is coming from the previous loop, but I guess this should be the value to the corresponding fileID?

escapeValue does not exist. should be escapedOperand
use resolvedName instead of se

using se here can cause exception if SEs hide behind aliases.
Merge pull request #2152 from andresailer/patch-4

[v6r11] Bug fix: use resolvedName instead of se
Merge pull request #2150 from andresailer/patch-3

[v6r11] Fix Bugs for findFilesByMetadata
v6r11p20 notes
Bug fixed in __transformMetaParameterToData()
Bug in dirac-dms-remove-replicas

dirac-dms-remove-replicas crashes with
```
Error: Failed to perform getPathPermissions from any catalog
Traceback (most recent call last):
  File "/home/sailer/software/DIRAC/DiracDevV6r8/DIRAC/DataManagementSystem/scripts/dirac-dms-remove-replicas.py", line 47, in <module>
    for lfn in sortList( res['Value']['Successful'].keys() ):
```
Or some other error message.

Do I understand correctly that if res['OK'] is False, then the previous function returned S_ERROR()
So there never is any res['Value'], so we have to continue after the error message
Right?
Otherwise there should be a check
```
if not 'Value in res:
  continue
```
in line 44 instead
Make scripts more standard, using Script.getPositionalArgs

instead of sys.argv that confuses the parser.
Additions and fixes for Workflow/Modules/test
Merge pull request #2166 from andresailer/patch-5

[v6r11] Bug in dirac-dms-remove-replicas
Merge pull request #2170 from andresailer/FixModulesTest

[v6r11] Additions and fixes for Workflow/Modules/test
Conflicts resolved with sposs/rel-v6r11
v6r11p21 notes
Bug fixed
Bugs in gLogger usage

These were fixed in later versions (v6r12 for one, integration the other)
instances does not exist, only step_instances
setParents does not exist, only setParent
Protect against missing MetaData, e.g. GUID empty string
PRODUCTION_ID and JOB_ID are taken from workflow_commons (cf. test_modules wf_commons)