pdfinvert: Fixes behaviour with input files that are given via paths.