fix bug with --copy_runtime and --analysis flags combined