diff --git a/appveyor.yml b/appveyor.yml
index 13f90c3b5f761469369a151b025b0551028c7004..e2ae9ac8115c8a42eba46ad026461a38cb810c1e 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -76,8 +76,8 @@ after_test:
 # package artifacts
 - cmd: copy /Y C:\OpenSSL-Win64\bin\libeay32.dll dist\beempy
 - cmd: copy /Y C:\OpenSSL-Win64\bin\ssleay32.dll dist\beempy
-- ps: 7z a beempy.zip %APPVEYOR_BUILD_FOLDER%\dist\beempy
-- ps: 7z a -m0=LZMA2 -mx9 $env:BUILD %APPVEYOR_BUILD_FOLDER%\dist\beempy
+- cmd: 7z a beempy.zip %APPVEYOR_BUILD_FOLDER%\dist\beempy
+- ps: 7z a -m0=LZMA2 -mx9 $env:BUILD .\dist\beempy
 
 - ps: | # generate sha256 hashes
     (get-filehash $env:BUILD -algorithm SHA256).Hash | out-file ("{0}.sha256" -f $env:BUILD) -encoding ascii