adding a new function (in global lib directory) _check_cmd_already_running to check if a command is already running or not