add hardlink support and fix winscp upload bug