Improved the auto-copying to exclude all loaded libraries