Wrestle once again with the worst code in the system.  The recent fixes for Sierra to platforms/iOS/vm/OSX/sqMacUnixExternalPrims.m broke it for bundles. Simplify the code by splitting tryLoading into tryLoadingVariations which handles adding optional lib prefix and .so or .dylib suffixes, and tryLoadingBundle which constructs the full module.bundle/Contents/MacOS/module form.  Be very careful with  stringByAppendingPathComponent: which will /not/ append a slash if given a null string to append to a path.
Wrestle once again with the worst code in the system.  The recent fixes for
Sierra to platforms/iOS/vm/OSX/sqMacUnixExternalPrims.m broke it for bundles.
Simplify the code by splitting tryLoading into tryLoadingVariations which
handles adding optional lib prefix and .so or .dylib suffixes, and
tryLoadingBundle which constructs the full module.bundle/Contents/MacOS/module
form.  Be very careful with  stringByAppendingPathComponent: which will /not/
append a slash if given a null string to append to a path.

It would be really nice if the system didn't try and open a file some 96 times
on MacOS when trying to load a plugin.

OpenSmalltalk/vm,peteruhnak/pharo-vm,OpenSmalltalk/vm,OpenSmalltalk/vm,peteruhnak/pharo-vm,bencoman/pharo-vm,bencoman/pharo-vm,bencoman/pharo-vm,peteruhnak/pharo-vm,timfel/squeakvm,OpenSmalltalk/vm,timfel/squeakvm,timfel/squeakvm,peteruhnak/pharo-vm,OpenSmalltalk/vm,timfel/squeakvm,bencoman/pharo-vm,bencoman/pharo-vm,bencoman/pharo-vm,timfel/squeakvm,bencoman/pharo-vm,timfel/squeakvm,peteruhnak/pharo-vm,bencoman/pharo-vm,OpenSmalltalk/vm,peteruhnak/pharo-vm,bencoman/pharo-vm,timfel/squeakvm,OpenSmalltalk/vm,peteruhnak/pharo-vm,peteruhnak/pharo-vm,timfel/squeakvm,OpenSmalltalk/vm