parser: fix writing Makefile on config open

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