fix: if a path is symlink and trying to chmod, OSError Exception will be raised.