Treat symlinks as files

For development it may be useful to treat symlinks to dynamic libraries as valid plugins.
Probably the provided implementation is not that gracious, improvements or other opinions are welcome.