EUCA-550

added special case for darwin and non-bash fallback per http://www.zsh.org/mla/users/2008/msg00629.html