Follow symlinks when resolving scala libraries

This follows symlinks that come directly on the commandline, but not
otherwise.  This handles the case where we have /usr/lib as a symlink,
but avoids directory loops (which are apparently common in /usr/lib).