parser: add error on invalid build file

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