You should make sure this works on Linux as well by checking for `.so`.