make sure target file exists.
Merge pull request #21 from brentp/check-target

make sure target file exists.