Fixed the recursive path creation code; going for a drink.