Fixed bugs in integration test and EOL in Greptool