Clean up ControlComments module

Convert some of the Ruby in this file to be more idiomatic.

Change-Id: Icd7ec38f422d4dccba9edbcfcd4f25e1fe4bb89c
Reviewed-on: http://gerrit.causes.com/44952
Tested-by: jenkins <jenkins@brigade.com>
Reviewed-by: Shane da Silva <shane.dasilva@brigade.com>