copy-paste the workspace mod stuff instead of using a script

hopefully avoiding octave bug #38549