If an IOError or ValueError occur when trying to check if the 'header' variable is a valid pathname then go ahead and assume it is not a pathname
Merge pull request #1363 from embray/wcs-path-issue

Fix WCS tests on Windows with Python 3.3