Adds verification of whitelisted files and directories.
Merge pull request #35 from gradha/pr_fail_bad_input

Adds verification of whitelisted files and directories.