Write barcode to file only when not already there.

Signed-off-by: Mariusz Fik <fisiu@fidano.pl>