SCALRCORE-599 *Fix get os_version for amazon
SCALARIZR-1235 refactoring