This should probably search for globals.npm relative to the script file rather than the current directory. E.g.

```bash
SETUP_ENV_DIR="`dirname $0`/setup_env"

npm install --prefix=$VIRTUAL_ENV -g `cat "$SETUP_ENV_DIR"/globals.npm | tr '\n' ' '`
```