[minor] Added support for custom pathnames in the example.