make output filenames match script filename