Use provided R_HOME, fixed OSX build

Also fixed no R on PATH build