modtool: fixes case when modulname ends in 0