path: fix folders returned by find command