BUG: Warn on directories

The script only processes files. Directories are ignored. Prior to this
patch, the script exited if a directory was found.

Change-Id: I9286d17af1a8cc92cfdebe9de3d09303c690b1aa
Merge topic 'WhatModulesError'

fb8cba8 BUG: Warn on directories