parser: add method for asserting valid build file

Signed-off-by: Alberto Corona <alberto@0x1a.us>