Modify the way to set input path in directory rule examples