SED still defaults to saving as *.wdl. Your script will then be interpreted as C-Script (the predecessor to Lite-C), so make sure your scripts are saved as *.c.