tuning bash build script