Add tempfile support in parsed_as? to work with ruby-augeas < 0.5