 +
 diff --git a/src/dtrace/stap-nginx b/src/dtrace/stap-nginx
 new file mode 100644
-index 0000000..d53ef66
+index 0000000..37f9367
 --- /dev/null
 +++ b/src/dtrace/stap-nginx
 @@ -0,0 +1,5 @@
 +#!/bin/sh
 +
 +export PATH=NGX_SBIN_DIR:$PATH
-+exec stap -I "NGX_STAP_NGX_PATH" "$@"
++exec stap -I "NGX_TAPSET_DIR" "$@"
 +
 diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
 index 31832ce..9c5ebf3 100644

diff --git a/auto/install b/auto/install
index c2c0ade..722976c 100644
--- a/auto/install
+++ b/auto/install
@@ -16,6 +16,20 @@ END

+	sed -e "s|NGX_SBIN_PATH|$NGX_SBIN_PATH|g" src/dtrace/nginx.stp > $NGX_OBJS${ngx_dirsep}nginx.stp
+
+$NGX_OBJS${ngx_dirsep}stap-nginx: src/dtrace/stap-nginx
+	sed -e "s|NGX_TAPSET_DIR|`dirname $NGX_TAPSET_PATH`|g" $ngx_long_cont -e "s|NGX_SBIN_DIR|`dirname $NGX_SBIN_PATH`|g" $ngx_long_cont src/dtrace/stap-nginx > $NGX_OBJS${ngx_dirsep}stap-nginx
+END
+fi
+
