Fixes #980 - support .dist files as a fallback