added func to check if cmd line program exists