diff --git a/cmake_targets/tools/build_helper b/cmake_targets/tools/build_helper
index facbb5ea0cf0582882ad80699ff08eca196ffa75..744a46f76bfd45e530893f39559c55a29a84abd8 100755
--- a/cmake_targets/tools/build_helper
+++ b/cmake_targets/tools/build_helper
@@ -461,7 +461,7 @@ install_soapy_from_source(){
     (
     cd /tmp
     echo "Downloading SoapySDR"
-    rm -rf /tmp/soapysdr
+    rm -rf /tmp/SoapySDR
     git clone -b soapy-sdr-0.7.0 --single-branch https://github.com/pothosware/SoapySDR.git
     cd SoapySDR
     #git checkout tags/release_003_010_001_001
@@ -474,7 +474,7 @@ install_soapy_from_source(){
     $SUDO ldconfig
     cd /tmp
     echo "Downloading SoapyRemote"
-    rm -rf /tmp/soapyremote
+    rm -rf /tmp/SoapyRemote
     git clone -b soapy-remote-0.5.0 --single-branch https://github.com/pothosware/SoapyRemote.git
     cd SoapyRemote
     #git checkout tags/release_003_010_001_001