teepot tweaks

Fix teepot command when using stdout out.
Fix use_STDOUT when no longer using stdout.
Remove hardcoded path.