fix(sources/filesystem): order resume comparison by path component (#5041)