async function isCommandAvailable(cmdName) {
  return new Promise((resolve, _) => {
    cp.exec(`which ${cmdName}`, (err, stdout, stderr) => {
      if (err || stderr) {
        resolve(false);
      }

      resolve(true);
    });
  });
}
Checks if a given command exists in the current system

@param {string} cmdName
Name of the command whose existance has to be checked

@returns {Promise<boolean>}
Boolean value based on command availibility