fixing update doc script to make directory