fix handling of path strings