bashism in mac address generation