Added -p option to mkdir

Added -p option to mkdir, without it the move fails if the deleted directory exists