Build: if --amd is specified, the define call isn't removed for exports/amd