Fix build project and updated gradle
Merge pull request #130 from danielsoro/fixed-build

Fix build project and updated gradle
[AESH-293]
remove usage of InputStream.available() and use .read() instead, reader thread is now set to deamon.