Added Function to check if a binary is installed using just shell builtins