Squeeze a few more bytes out of put_file script.
Fix trailing slash on returned temp path.