Correct the way to search the command to complete with the regular expression using findall instead of match
Remove not useful logs