[Bug 47787] Path maniplation bug in cpython 3.5/3.6 but not 3.7