remove redundant mkdir commands