Re-write AMD files to synchronously define modules on a namespace