fix Issue 13413 - dmd does not follow symlink when searching for dmd.conf

- first search argv0 in PATH then resolve symbolic links
Merge pull request #3941 from MartinNowak/fix13413

fix Issue 13413 - dmd does not follow symlink when searching for dmd.conf