Use shorter test equivalent.
Source .profile correctly on OS X.

PATH gets overriden sometimes by utilities such as tmux, which gets in
the way especially on OS X. Ensure we set the correct PATH even if
.profile is already sourced.