Enables to find the first parent package in the path hierarchy