Fixed AMD check to also test for `define.amd`