Fixes #9

if statement was failing silently when it got to a directory. Because
capital letters appear first, it was never grabbing filenames that
appear in lower case.