Simplify paths handling

Split strings into lists earlier