chmod: Fix for displaying help

Validate options and number of argument to display help

Change-Id: Ia003bd362c44d5d868e68f45c7dcfea50864dc7b
CRs-Fixed: 589737
(cherry picked from commit dedff4fa7b861d2331cdf9c20b41f9c3b2437139)