Simplified condition in a stat module example testing if path is a directory