Updated OS build script with locale support