[FIX]: site in the job definition is taken into account when submitting

Porting back from v6r8 (tested)
Merge pull request #1370 from fstagni/sitesInTaskFromJobDefv6r7

[FIX]: site in the job definition is taken into account when submitting