Add multiplatform support for install script.