Renamed r1bindex() to mhbasename(), to make its function becomes clear.