Warn user when no files are imported from a directory

Fixes #1116.