Initial fix for getSegmentsFromRealPath.