Check if a program exists in bash