Fixed chown and chgrp bug.

Signed-off-by: Vijaykumar Koppad <vijaykumar.koppad@gmail.com>