Fix make dist for out-of-tree builds.
Merge pull request #370 from jimis/bug2190

Fix make dist for out-of-tree builds.