updated patch for .so links because previous one wasn't working very well
added support for wildcards in path - resolves: #693458 fixed error with .so links