Function splitPath

Splits derive path into segments