Check for excluded path before fs.stat