basename bug in AMETHST.pl fixed