Whitespace
Fix support for shared libraries

The file type fingerprinting code could not deal with shared libraries.
Added the necessary patterns.  Also, resolve symbolic links before
checking the file type.