remove apache commons.io
fix console stream not working on 1.7.2 and replace apache commons with a slim class