Updated directory creation