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

FIX: Properly set the dirac env for scripts that do not start with 'd'

**This avoids breaking scripts done by extensions with names that do NOT start with 'd'**