hugolib: converted path 2 filepath

convert `hugolib`'s `path` usage to `path/filepath`