updated to fix split issue with paths with slashes