Refactored makefile-generator.unit.js