Remove a android hack
Decides main name by target
Fix fileinput test fail
auto merge of #5691 : ILyoan/rust/main_name, r=thestinger

Existing rust code decides main name by host environment of rustc.
I think it should be chosen by build target.

This patch is also removing one of the android hacks that is not necessary any longer(I think it was not necessary from the first).