removed obsolete ifelse function
Fixed hard link calculation on remote sets