Modified chown/chmod to not follow symlink

Enable symlink to not follow target file if "-h" option is
provided.

CRs-fixed: 545883
Change-Id: I94dbc32e7635d06a2121b3a1b07cc2616d06b5a4
Merge "Modified chown/chmod to not follow symlink"