Support rewriting library load path for libraries that are in subdirectories of lib/ on OSX