fix linkOrCopyFileIfNewer