fixed issues with unix <-> windows directories. CreateComplexDirectoy only works for windows formatted ones.