Better AMD support for r.js.