cw.lua.in: fix argument handling: remove definition script from arg before using arg for anything else.