Updates the define plugin to support an API change - Fixes #66