Fix issue with echo when generating controller file