Update how to check if command exists