better hipchat path lookup; use bash tests instead of shell tests