chmod: Fix for displaying help

Validate options and number of argument to display help

Change-Id: Ia003bd362c44d5d868e68f45c7dcfea50864dc7b
CRs-Fixed: 589737
Merge branch 'kitkat-legacy' of github.com:AOSPAL/android_system_core into kitkat-legacy