Fixed recursive mkdir call in helper