Modify expr call in rd.bash to use a form that is supported on OS X
Add logic to run daemon on login on OS X and setup Bash integration

A launchd agent is used to run the daemon on login under OS X

Also remove existing references to rd.bash from
the shell's init file (if any)