FIX: Properly set the dirac env for scripts that do not start with 'd'
(cherry picked from commit 3be68c03831fd5cf02608ed6b0eeff7da3387895)
Merge pull request #1367 from acasajus/fix-deployscripts

[URGENT][v6r7] FIX: Properly set the dirac env for scripts that do not start with 'd'