Things were segfaulting on Mac Jenkins in here, try to be kinder about file handling