Merge pull request #45 from lyrasis/1.x

Test for valid temporary file.
Merge remote-tracking branch 'upstream/1.x' into lyr-master