Extend the script added by previous commit to one handling the entire bundling from Makefile. It is nicer having the scripting outside the Makefile, anyways, and the bundle LC_RPATH fix workaround closly relates to bundling.