diff --git a/helpers/check-vulkan.cpp b/helpers/check-vulkan.cpp
index 7282b00b62a2fa3e2a8ddd5d50092c1f0ed87a17..89e6fe82dea8610254565ddc0afcb206afd1de7e 100644
--- a/helpers/check-vulkan.cpp
+++ b/helpers/check-vulkan.cpp
@@ -474,13 +474,11 @@ private:
               shadersPath = argv0;
               size_t lastSlash = shadersPath.rfind('/');
               if (lastSlash != std::string::npos)
-                {
-                  shadersPath.resize(lastSlash + 1);
-                }
+                shadersPath.resize(lastSlash);
           }
 
-        auto vertShaderCode = readFile(shadersPath + "vert.spv");
-        auto fragShaderCode = readFile(shadersPath + "frag.spv");
+        auto vertShaderCode = readFile(shadersPath + "/vert.spv");
+        auto fragShaderCode = readFile(shadersPath + "/frag.spv");
 
         VkShaderModule vertShaderModule = createShaderModule(vertShaderCode);
         VkShaderModule fragShaderModule = createShaderModule(fragShaderCode);