doc update

Here's a doc fix for the stat module.  Fixes a small typo and adds an example showing how to test if a path exists and is also a directory.