Check if os snapshot exists before building