Revert "Take into account parent path"

This reverts commit 2d29b15c403ba81929a83907e7ec05106588dec1.