Update amd.js to handle flexible paths.