Modify is_directory check to support symlinks to directories. This fixes #146.
Merge pull request #149 from rev112/follow_directories

Modify 'is_directory' check to fix directory symlink issue