Fix broken code by using the PathExtensions trait