do not output __main as dependency
Merge pull request #2626 from rainers/issue11164

fix issue 11164: do not output __main.d as dependency