Fix python script dirty flag for firmware version