update AMD regex to reflect CommonJS regex updates (fixes #204)