matlab: detect binary in custom and global search path