Upd. an example. Fixing path detecting.