Fix comment typos
Use common functions appropriately ; Rename Magpie_am_I_a_hadoop_master to Magpie_am_I_hadoop_master