tegel-tgp fixes

the scripts now support the --dir flag. plus small bug fixes