Fix for when a single path is passed into separatePathParts