make sure target file exists.

report an error (from python) if a target file is specified but does not exist. avoids some weirdness down-stream.