Add package metadata determiner
sub_ext removes existing part similar with extname

e.g. 2013-03-24_01.02.03 -> 2013-03-24_01.02.tar.gz