Fix error in autoexec-rewriting sed script (thanks mparrett)