Simplify the part which is checking for snappy library presense