Fixing required libs search