Add OS type caching to Helper::DetectOS

Ref: #149