diff --git a/buildconfig/Jenkins/buildscript b/buildconfig/Jenkins/buildscript
index f033a78af8cd0c563521c11806c18b4561b568f7..1fbd8652525e583cce842c9dadb926b0a5c3ebfb 100755
--- a/buildconfig/Jenkins/buildscript
+++ b/buildconfig/Jenkins/buildscript
@@ -282,7 +282,7 @@ fi
 if [[ ${BUILDPKG} == true ]]; then
   # Workaround so that the target can find the properties file
   # CMake doesn't easily allow environment variables on custom targets
-  if [[ ${ON_MACOS} == 'Darwin' ]]; then
+  if [[ ${ON_MACOS} == true ]]; then
     export MANTIDPATH=$PWD/bin
   fi
   $SCL_ON_RHEL6 "cmake --build . --target docs-qthelp"