removing trailing dots from mktemp
removing trailing dots from mktemp