small fixes, don`t encode failures twice. Validation script fixes

Signed-off-by: Justas Balcas <juztas@gmail.com>
Merge pull request #4387 from juztas/small_fixes

small fixes, don`t encode failures twice. Validation script fixes
Adjust printout in DBSDataDiscovery
Report an error if usedbs is used in the report and no outputdataset is found
Use lfnParts for the outfile reg exp
Final additions to the monitor
Do not assume that the job ad goes into $PWD/.job.ad.  Instead,
use $_CONDOR_JOB_AD if set by HTCondor (defaulting to $PWD/.job.ad).

There should be no user-visible change; however, in 8.3.2, HTCondor
will populate this file and remove our need to do condor_q.
Fix typo in cmscp
Merge pull request #4402 from AndresTanasijczuk/fixtypo

Fix typo in cmscp. Fixes #4401