Rewrite dotted path deduction for https://github.com/framework-one/di1/issues/61

This no longer relies on webroot being a special case. Now if the folder can be expanded as a mapping, regardless of location, we attempt to walk back up the path to find a /-based suffix that expands to the same path, then convert that to a dotted path.