maybe use
    dso_tool -s $NGINX_SOURCE
instead of
    dso_tool -s=$NGINX_SOURCE

From output of 'dso_tool --help':
    -s, --nginx-include=SOURCE set nginx include path
I think it means "-s SOURCE", not "-s=SOURCE"