fix detection of dependencies if library is in web or kwf