fix runtime warning about undef
[fingerprint] fix tmux detection
minor tweaks
update copyright headers