Fix some issues in Express Bulk Copy.

 1. "Flatten Geometries" does not apply the correct target schema
 2. Bulk copying to a SHP file doesn't properly delete any existing SHP files of the same name

Patch by Danny Tuypens.