fallback on copy, copyfile if copy2 fails

in notebook manager
only catch errors in copystat
Merge pull request #5357 from minrk/smb-fails

catch exception in copystat