Fix change_mask string generation

The change_mask string generation was buggy and confusing.
Fix it with something more usable.

Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
2 jobs for kg-master in 1 minute and 11 seconds (queued for 17 seconds)