Add separate file mode options for directories and sub files.

There are times people want to set different file modes for directories and files.
For example,I use chmodr with my nginx static files,I want set directories with mode 0755(will add files to it),but want files to be 0444(which is readonly).

Wrong. Must pass both mode and submode, otherwise you're making a pretty significant behavior change here.