fix bundle loader paths on ios/osx