How to check if one path is a child of another path? Just checking for substring is not a way to go, because there can items such as . and .., etc