Added support for the new --chmod option.