Reorder shell commands (mkdir before cp)