Add possibility to specify minOS, maxOS via environment.