Fix HEAD build and formula generator.
Merge pull request #2 from take-cheeze/head_fix

Fix HEAD build and formula generator.