remove root from the path