Refactored controller generator to use utility functions from makomi-source-utils for file manipulation