consistently use getNativePath before comparing or applying any string

operation on a path