small changes to make possible to run large gradle test on linux system and avoid playing with permissions

instead of using sh I used bash