Log output of file command when testing for pdf