OpenBSD (and NetBSD) whereis don't support -b

Index: LibreNMS/Validations/System.php
--- LibreNMS/Validations/System.php.orig
+++ LibreNMS/Validations/System.php
@@ -41,7 +41,7 @@ class System extends BaseValidation
     {
         $install_dir = $validator->getBaseDir();
 
-        $lnms = str_replace('lnms:', '', rtrim(`whereis -b lnms 2>/dev/null`));
+        $lnms = str_replace('lnms:', '', rtrim(`whereis lnms 2>/dev/null`));
         $path = rtrim(`echo "\$PATH"`);
 
         // if couldn't find lnms and we have PATH
@@ -56,7 +56,7 @@ class System extends BaseValidation
             $validator->warn('Global lnms shortcut not installed. lnms command must be run with full path', "sudo ln -s $install_dir/lnms $bin/lnms");
         }
 
-        $bash_completion_dir = '/etc/bash_completion.d/';
+        $bash_completion_dir = '/usr/local/share/bash-completion/completions/';
         $completion_file = 'lnms-completion.bash';
         if (is_dir($bash_completion_dir) && ! file_exists("$bash_completion_dir$completion_file")) {
             $validator->warn('Bash completion not installed. lnms command tab completion unavailable.', "sudo cp $install_dir/misc/lnms-completion.bash $bash_completion_dir");
