Add check for Ubuntu systems.
Function to check command existence.