Fix handling of nonexistent files (e.g. failed globs)