Support native libraries search both in "<jar folder>" and "<jar folder>/libpty" folders