Fixed '--mkdir' to be a boolean option.