diff --git a/appveyor.yml b/appveyor.yml
index 83ef925..06b664b 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -7,10 +7,10 @@ build_script:
     git clone --depth=1 -b maint/v0.24 https://github.com/libgit2/libgit2.git libgit2
     mkdir build
     
-    pushd build
+    cd build
     cmake -DSTDCALL=OFF -DBUILD_CLAR=OFF -DCMAKE_INSTALL_PREFIX=%LIBGIT2% ../libgit2 -G"Visual Studio 11 Win64"
     cmake --build . --config Release --target install
-    popd
+    cd ..
     
     C:\Python35-x64\Scripts\pip.exe install wheel
     C:\Python35-x64\python.exe setup.py bdist_wheel