Deal with files not found

Fixes #374