Make Acorn work with AMD modules

(Hopefully)