diff --git a/runtime.d/public_modules.rtinstall b/runtime.d/public_modules.rtinstall
index 7d6b9a64c9571ff8d9bea3f8a7f4f11cc376d400..92a297b8768a567000e8fa8122376e76d01767ab 100755
--- a/runtime.d/public_modules.rtinstall
+++ b/runtime.d/public_modules.rtinstall
@@ -2,7 +2,7 @@
 
 VERSION=${2#python}
 if which python >/dev/null 2>&1 && which pycompile >/dev/null 2>&1; then
-    pycompile -V $VERSION /usr/lib/$VERSION/
+    pycompile -V $VERSION /usr/lib/python$VERSION/
 else
     echo >&2 "python or pycompile not found in $(basename $0) hook."
     exit 1