system based implementation of find_program