Java back-end: Look for generated runMain

If there is a main function, it will be accessible via the compiler generated wrapper "runMain". This wrapper will now be used to test for existence of "main" in the Java back-end instead of searching "Main.main".