trivial porting of 1.4/copyFileFromSharedFolder to other OS

This technique should not depend on any particular OS