reverse shim & link
candidate test suite - tested on OSX
Move bin type decision code into lib file for testing; write decision tests; skip unix-specific tests