If --with-R-dir is not set, try `R RHOME`.
Bump version to 0.5.2.