Add missing argument to "-downsample"
Move common code to "coverage.bash"