Replace java command by variable
Some minor fixes to do with strings and mailing the bug report