do not scan on non win32 if java path is "."

This removes the recursive directory scan if the java path is "." on
non-win systems.  Since the current directory is the root directory
this causes a massive scan which freezes the system.