Make options.base an array before assigning directory