1. Using "tail -n 1" works for all my error cases, will make the change.
2. Wouldn't using the umbrella project be more accurate (considering the fact that we use a fat jar)?