Error in tempfile() using template /tmp//...

use basename to strip a fullpath self->{exename} in the perl testlib