1. Make sure cmdname NUL-terminates its arguments. 2. Fix the elogapply warning, hopefully.
Lots of new code imported.
Also add acme!