Look for .scala and .java files for detection.

This is less assumptive than looking for srcdir/java and/or srcdir/scala dirs.

This will all go away when we start adding JDK/SDK deps when initiating a
search from a .java or .scala file, but for now it's an improvement.
Put our log file in ~/Library/Logs if it exists.