Making node.js use bash PATH

I'm trying to use imagemagick's "identify" from node.js, but it's not working. I have installed imagemagick using

brew install imagemagick

and it's in /usr/local/bin/identify etc.

I have created a script to start my server like this:

#!/bin/bash
echo "imagemagick: `which identify`"
/Users/myname/.nvm/v0.6.10/bin/node /path/to/server.js -g /some/directory/argument -port 8475

When I run the script from Terminal (Mac OS X 10.7), the output is as follows:

imagemagick: /usr/local/bin/identify
[... output from node.js comes here ...]

However, later on the script complains that identify could not be found. Make sure you have it installed and in your path etc.

The node.js imagemagick module calls childproc.spawn('identify', args);.

How can I make node.js use the same PATH as the bash script?