fix bug: failure to find snap by Build