Changed which... > /dev/null to which -s ...

OS X 10.10 seems to have done something causing which tmux > /dev/null to return false

Which does however have an option for not outputting what it found but return 0 or 1 depending on if it was found, achieving the same goal.