Fix error if output file doesn't exist on unlink