Duplication in the PATH due to raspberrypi-userland.sh with tmux
When using tmux, the path is appended a second time. Something like this can prevent it.
if [ -d /opt/vc/bin ] && [[ $PATH != *"/opt/vc/bin"* ]]; then
export PATH=$PATH:/opt/vc/bin
fi