This needs some work (and testing on Windows) but it solves simple cases and provides a starting point for a more advanced bundler.