stty command using -F instead of the redirection

http://stackoverflow.com/questions/15348538/eclipse-hangs-when-run-application-application-runs-fine-eclipse-is-what-hangs

Disclaimer: The above post is not authored by me, it is mentioned here because I had the similar issue. I fixed it with a small change which is part of this pull request.