improve build script a little bit