added delimiter argument to make usable for other path delimitation