The attached patch solved the problem for me. The patch is the difference between the file installed by the Debian package and the file currently distributed with maxima 5.41.
--- operatingsystem.lisp.orig 2018-03-26 21:31:40.003350426 +0200 +++ operatingsystem.lisp 2018-03-26 21:31:52.475471997 +0200 @@ -19,7 +19,7 @@ #+clisp (ext:cd dir) #+cmu (setf (ext:default-directory) dir) #+cormanlisp (ccl:set-current-directory dir) - #+gcl (si:chdir dir) + #+gcl (si::chdir dir) #+lispworks (hcl:change-directory dir) #+lucid (lcl:working-directory dir) #+sbcl (sb-posix:chdir dir) @@ -87,4 +87,4 @@ (let ((buf (make-array 4096 :element-type (stream-element-type input-stream)))) (loop for pos = (read-sequence buf input-stream) while (plusp pos) - do (write-sequence buf output-stream :end pos)))))) \ No newline at end of file + do (write-sequence buf output-stream :end pos))))))