This will just add new host to the end. 
The main idea was to add hosts to separate block.
In master it was aaa, in remove_aa_hardcode it was just promo string

Also as you see I created a tmp file than moved it to /etc/hosts.
Please remove calling the shell