diff --git a/tools/wineinstall b/tools/wineinstall
index 86c2b45bd121d38264977ad7ed0c766fd02b0632..458eab5e9c6fb5c0a2a2a9929a0da3f454bb797c 100755
--- a/tools/wineinstall
+++ b/tools/wineinstall
@@ -620,7 +620,7 @@ then {
 
   # Make sure we are on a Windows drive
   mv $LCONF $LCONF.orig
-  sed "s/\"Path\" = \"\${HOME}\"$/\"Path\" = \"\${PWD}\"/" $LCONF.orig> $LCONF
+  sed "s/\"Path\" = \"%HOME%\"$/\"Path\" = \"\${PWD}\"/" $LCONF.orig> $LCONF
 
   echo "Installing default Wine registry entries..."
   echo