[Olena-patches] [PATCH 07/19] Improve build_unit_test.sh's portability.