added check_build_id function [auto_flash_from_PVT.sh]