diff --git a/Shelly.hs b/Shelly.hs
--- a/Shelly.hs
+++ b/Shelly.hs
@@ -474,7 +474,7 @@
 appendToPath = absPath >=> \filepath -> do
   tp <- toTextWarn filepath
   pe <- get_env_text path_env
-  set_env path_env $ pe `mappend` ":" `mappend` tp
+  setenv path_env $ pe `mappend` ":" `mappend` tp
   where
     path_env = "PATH"
 
diff --git a/shelly.cabal b/shelly.cabal
--- a/shelly.cabal
+++ b/shelly.cabal
@@ -1,6 +1,6 @@
 Name:       shelly
 
-Version:     0.13.5
+Version:     0.13.5.1
 Synopsis:    shell-like (systems) programming in Haskell
 
 Description: Shelly provides convenient systems programming in Haskell,
