ECMS-5597 update symlink only when target is updated

We check the last modified date of symlink and target, and update symlink only when target is updated after symlink. This helps us to avoid redundant setProperty/save operations which are quite expensive.