Modernize R startup script.