[v6r12] Some more fixes for the new pilot

Main FIX: The jobAgent could not be started with a "sparse" DIRAC installation.

Also: some bugs have been fixed in few WMS modules out of those spotted by pylint.