update AMD check

adds compatability with namespaced require.js builds