update fact module to handle empty files.

I updated the module to pass lint and handle empty files.