  const ByteArray = imports.byteArray;
  function getSmartData (argv){
 -    const smartctl = GLib.find_program_in_path('smartctl')
-+    const smartctl = GLib.find_program_in_path('@smartmontools@/bin/smartctl')
-     return JSON.parse(ByteArray.toString( GLib.spawn_command_line_sync(`${smartctl} ${argv} -j`)[1] ))
++    const smartctl = '@smartmontools@/bin/smartctl'
+     return JSON.parse(ByteArray.toString( GLib.spawn_command_line_sync(`'${smartctl}' ${argv} -j`)[1] ))
  }
  

         let systemctl = GLib.find_program_in_path('systemctl');
-        let pidof = GLib.find_program_in_path('pidof');
-        let nc = GLib.find_program_in_path('nc');
+        let pidof = GLib.find_program_in_path('@procps@/bin/pidof');
+        let nc = GLib.find_program_in_path('@netcat@/bin/nc');
         let pid = undefined;
 
         if(systemctl) {

                 pid = Number(output.trim());
         }
diff --git a/liquidctlUtil.js b/liquidctlUtil.js
index 766bf62..2a6faf8 100644
--- a/liquidctlUtil.js
+++ b/liquidctlUtil.js
@@ -8,7 +8,7 @@ const commandLineUtil = Me.imports.commandLineUtil;
