Handle the case of plugin library without read permissions properly

This should finally completely fix the problem when a plugin library is not readable for the user and at the same time ends with a blacklisted string.