Fix DN retieval funciotn.
Merge pull request #11 from HassenRiahi/FixInitScript

Fix DN retieval funciotn.