libstruct throws IOError for missing filename