removed redundant instances of mkdir