Added more reliable test of readiness of input in ghci using socket connection between processes and some needed setup of ghci in the beginning