ECMS-4195 fix problem with symlinks