Properly combine paths