Replaced ModuleManager::expandLibraryName with os::libraries::expandName.

Review: https://reviews.apache.org/r/26904