Add realpath to fix rJava install issues

This was reported in https://groups.google.com/d/msg/sparkr-dev/7sxYNo81X8E/DJc6UsdEU0cJ

/cc @pwendell