[HOTFIX] Copy SparkR lib if it exists in make-distribution
[HOTFIX] Copy SparkR lib if it exists in make-distribution

This is to fix an issue reported in #6373 where the `cp` would fail if `-Psparkr` was not used in the build

cc dragos pwendell

Author: Shivaram Venkataraman <shivaram@cs.berkeley.edu>

Closes #6379 from shivaram/make-distribution-hotfix and squashes the following commits:

08eb7e4 [Shivaram Venkataraman] Copy SparkR lib if it exists in make-distribution

aokolnychyi/spark,nlalevee/spark,zzcclp/spark,big-pegasus/spark,icexelloss/spark,ahnqirage/spark,zero323/spark,wangmiao1981/spark,witgo/spark,andrewor14/spark,kiszk/spark,kissmetrics/spark,cin/spark,rikima/spark,apache-spark-on-k8s/spark,taroplus/spark,tengpeng/spark,someorz/spark,akopich/spark,ericvandenbergfb/spark,jlopezmalla/spark,hhbyyh/spark,apache/spark,bdrillard/spark,zero323/spark,minixalpha/spark,mahak/spark,gioenn/xSpark,sachintyagi22/spark,aray/spark,eyalfa/spark,spark-test/spark,SHASHANKB/spark,andrewor14/spark,jkbradley/spark,guoxiaolongzte/spark,xuanyuanking/spark,map222/spark,WeichenXu123/spark,debugger87/spark,vinodkc/spark,gioenn/xSpark,SnappyDataInc/spark,lxsmnv/spark,adrian-ionescu/apache-spark,akopich/spark,cloud-fan/spark,joseph-torres/spark,markhamstra/spark,chuckchen/spark,apache/spark,markhamstra/spark,zhouyejoe/spark,ConeyLiu/spark,yanboliang/spark,michalsenkyr/spark,stanzhai/spark,ddna1021/spark,jiangxb1987/spark,WindCanDie/spark,ahnqirage/spark,guoxiaolongzte/spark,icexelloss/spark,narahari92/spark,adrian-ionescu/apache-spark,michalsenkyr/spark,jrshust/spark,tejasapatil/spark,lvdongr/spark,sureshthalamati/spark,publicRoman/spark,witgo/spark,poffuomo/spark,Aegeaner/spark,highfei2011/spark,nlalevee/spark,holdenk/spark,setjet/spark,actuaryzhang/spark,srowen/spark,ptkool/spark,bOOm-X/spark,yanboliang/spark,WindCanDie/spark,janewangfb/spark,SnappyDataInc/spark,mzl9039/spark,zzcclp/spark,SHASHANKB/spark,SnappyDataInc/spark,lxsmnv/spark,maropu/spark,facaiy/spark,mdespriee/spark,gengliangwang/spark,LantaoJin/spark,jkbradley/spark,michalsenkyr/spark,SnappyDataInc/spark,caneGuy/spark,liutang123/spark,rekhajoshm/spark,apache/spark,metamx/spark,shubhamchopra/spark,dongjoon-hyun/spark,shaneknapp/spark,wangyum/spark,lvdongr/spark,lxsmnv/spark,esi-mineset/spark,tejasapatil/spark,pgandhi999/spark,ahnqirage/spark,ueshin/apache-spark,setjet/spark,kimoonkim/spark,jianran/spark,panfengfeng/spark,joseph-torres/spark,michalsenkyr/spark,bravo-zhang/spark,WindCanDie/spark,markhamstra/spark,sureshthalamati/spark,techaddict/spark,esi-mineset/spark,hvanhovell/spark,setjet/spark,minixalpha/spark,WeichenXu123/spark,tejasapatil/spark,michalsenkyr/spark,xflin/spark,jiangxb1987/spark,shubhamchopra/spark,rikima/spark,lvdongr/spark,caneGuy/spark,metamx/spark,nlalevee/spark,rezasafi/spark,wzhfy/spark,ahnqirage/spark,rednaxelafx/apache-spark,milliman/spark,bravo-zhang/spark,big-pegasus/spark,jrshust/spark,zzcclp/spark,rekhajoshm/spark,ptkool/spark,metamx/spark,janewangfb/spark,someorz/spark,shubhamchopra/spark,dongjoon-hyun/spark,pgandhi999/spark,ron8hu/spark,publicRoman/spark,gioenn/xSpark,guoxiaolongzte/spark,xuanyuanking/spark,milliman/spark,jlopezmalla/spark,ioana-delaney/spark,joseph-torres/spark,BryanCutler/spark,cloud-fan/spark,metamx/spark,sahilTakiar/spark,nchammas/spark,saturday-shi/spark,ueshin/apache-spark,kevinyu98/spark,ericvandenbergfb/spark,cloud-fan/spark,huang1900/spark,szhem/spark,milliman/spark,jkbradley/spark,shaneknapp/spark,kimoonkim/spark,mzl9039/spark,shuangshuangwang/spark,skonto/spark,apache-spark-on-k8s/spark,xuanyuanking/spark,yanboliang/spark,WeichenXu123/spark,wzhfy/spark,poffuomo/spark,maropu/spark,shaneknapp/spark,apache/spark,maropu/spark,szhem/spark,UndeadBaneGitHub/spark,HyukjinKwon/spark,dhruve/spark,tengpeng/spark,JerryLead/spark,someorz/spark,liutang123/spark,rezasafi/spark,caneGuy/spark,jrshust/spark,icexelloss/spark,hhbyyh/spark,jlopezmalla/spark,patrick-nicholson/spark,witgo/spark,gengliangwang/spark,mike0sv/spark,goldmedal/spark,nchammas/spark,aosagie/spark,tengpeng/spark,janewangfb/spark,rezasafi/spark,haowu80s/spark,apache-spark-on-k8s/spark,haowu80s/spark,HyukjinKwon/spark,zzcclp/spark,andrewor14/spark,cloud-fan/spark,eyalfa/spark,esi-mineset/spark,cloud-fan/spark,witgo/spark,mdespriee/spark,adrian-ionescu/apache-spark,huang1900/spark,ron8hu/spark,chuckchen/spark,darionyaphet/spark,patrick-nicholson/spark,zero323/spark,milliman/spark,jianran/spark,vinodkc/spark,srowen/spark,WeichenXu123/spark,kimoonkim/spark,kiszk/spark,zuotingbing/spark,big-pegasus/spark,kissmetrics/spark,janewangfb/spark,spark-test/spark,sahilTakiar/spark,bdrillard/spark,metamx/spark,ericvandenbergfb/spark,saturday-shi/spark,UndeadBaneGitHub/spark,skonto/spark,dbtsai/spark,huang1900/spark,poffuomo/spark,BryanCutler/spark,kiszk/spark,srowen/spark,wangmiao1981/spark,kissmetrics/spark,mike0sv/spark,nchammas/spark,tejasapatil/spark,kevinyu98/spark,aray/spark,taroplus/spark,nilsgrabbert/spark,akopich/spark,maropu/spark,aokolnychyi/spark,nlalevee/spark,mahak/spark,ueshin/apache-spark,saturday-shi/spark,Panos-Bletsos/spark-cost-model-optimizer,saltstar/spark,andrewor14/spark,taroplus/spark,sureshthalamati/spark,sahilTakiar/spark,1haodian/spark,gioenn/xSpark,bOOm-X/spark,loneknightpy/spark,gioenn/xSpark,facaiy/spark,narahari92/spark,publicRoman/spark,dongjoon-hyun/spark,icexelloss/spark,poffuomo/spark,mzl9039/spark,vinodkc/spark,vinodkc/spark,techaddict/spark,lvdongr/spark,ioana-delaney/spark,saturday-shi/spark,zuotingbing/spark,setjet/spark,liutang123/spark,cin/spark,goldmedal/spark,debugger87/spark,apache-spark-on-k8s/spark,bravo-zhang/spark,witgo/spark,holdenk/spark,pgandhi999/spark,debugger87/spark,rekhajoshm/spark,jianran/spark,sureshthalamati/spark,mdespriee/spark,mzl9039/spark,akopich/spark,ron8hu/spark,techaddict/spark,panfengfeng/spark,rekhajoshm/spark,shaneknapp/spark,aray/spark,ioana-delaney/spark,byakuinss/spark,alunarbeach/spark,BryanCutler/spark,panfengfeng/spark,wzhfy/spark,LantaoJin/spark,ron8hu/spark,SHASHANKB/spark,nilsgrabbert/spark,hvanhovell/spark,UndeadBaneGitHub/spark,mzl9039/spark,ConeyLiu/spark,andrewor14/spark,map222/spark,adrian-ionescu/apache-spark,kimoonkim/spark,jlopezmalla/spark,ibm-research-ireland/sparkoscope,nilsgrabbert/spark,lvdongr/spark,holdenk/spark,kissmetrics/spark,ueshin/apache-spark,ajaysaini725/spark,ajaysaini725/spark,caneGuy/spark,tengpeng/spark,narahari92/spark,jrshust/spark,maropu/spark,BryanCutler/spark,HyukjinKwon/spark,ericvandenbergfb/spark,byakuinss/spark,chuckchen/spark,debugger87/spark,markhamstra/spark,aosagie/spark,mahak/spark,LantaoJin/spark,maropu/spark,pronix/spark,jiangxb1987/spark,Aegeaner/spark,ptkool/spark,pgandhi999/spark,debugger87/spark,HyukjinKwon/spark,bOOm-X/spark,brad-kaiser/spark,1haodian/spark,michalsenkyr/spark,ConeyLiu/spark,saltstar/spark,patrick-nicholson/spark,jiangxb1987/spark,stanzhai/spark,ibm-research-ireland/sparkoscope,holdenk/spark,tejasapatil/spark,apache/spark,vinodkc/spark,srowen/spark,WindCanDie/spark,liyichao/spark,esi-mineset/spark,goldmedal/spark,zuotingbing/spark,brad-kaiser/spark,patrick-nicholson/spark,ahnqirage/spark,icexelloss/spark,rikima/spark,rikima/spark,liutang123/spark,wangyum/spark,adrian-ionescu/apache-spark,someorz/spark,Panos-Bletsos/spark-cost-model-optimizer,Panos-Bletsos/spark-cost-model-optimizer,aokolnychyi/spark,rekhajoshm/spark,dbtsai/spark,joseph-torres/spark,ConeyLiu/spark,rikima/spark,alunarbeach/spark,vinodkc/spark,rezasafi/spark,gioenn/xSpark,dhruve/spark,hvanhovell/spark,stanzhai/spark,MLnick/spark,byakuinss/spark,pgandhi999/spark,taroplus/spark,srowen/spark,lxsmnv/spark,aokolnychyi/spark,MLnick/spark,JoshRosen/spark,ioana-delaney/spark,cloud-fan/spark,kimoonkim/spark,markhamstra/spark,JoshRosen/spark,HyukjinKwon/spark,yanboliang/spark,big-pegasus/spark,JerryLead/spark,lxsmnv/spark,dongjoon-hyun/spark,brad-kaiser/spark,janewangfb/spark,JerryLead/spark,stanzhai/spark,pgandhi999/spark,liutang123/spark,zero323/spark,szhem/spark,wangyum/spark,WeichenXu123/spark,adrian-ionescu/apache-spark,ddna1021/spark,WindCanDie/spark,facaiy/spark,bdrillard/spark,cin/spark,taroplus/spark,xuanyuanking/spark,byakuinss/spark,dbtsai/spark,UndeadBaneGitHub/spark,gengliangwang/spark,ConeyLiu/spark,poffuomo/spark,Panos-Bletsos/spark-cost-model-optimizer,liutang123/spark,SHASHANKB/spark,yanboliang/spark,nlalevee/spark,metamx/spark,sahilTakiar/spark,ajaysaini725/spark,mdespriee/spark,narahari92/spark,gengliangwang/spark,actuaryzhang/spark,MLnick/spark,saturday-shi/spark,pronix/spark,saturday-shi/spark,pronix/spark,bdrillard/spark,zhouyejoe/spark,byakuinss/spark,goldmedal/spark,ptkool/spark,zhouyejoe/spark,icexelloss/spark,lxsmnv/spark,highfei2011/spark,liyichao/spark,zuotingbing/spark,ueshin/apache-spark,ptkool/spark,alunarbeach/spark,minixalpha/spark,metamx/spark,rekhajoshm/spark,alunarbeach/spark,highfei2011/spark,cin/spark,Aegeaner/spark,HyukjinKwon/spark,rednaxelafx/apache-spark,mike0sv/spark,Aegeaner/spark,markhamstra/spark,bOOm-X/spark,bravo-zhang/spark,shaneknapp/spark,sachintyagi22/spark,guoxiaolongzte/spark,tengpeng/spark,mzl9039/spark,wzhfy/spark,hhbyyh/spark,icexelloss/spark,byakuinss/spark,jianran/spark,wangmiao1981/spark,alunarbeach/spark,UndeadBaneGitHub/spark,mike0sv/spark,cin/spark,ron8hu/spark,aosagie/spark,aosagie/spark,pronix/spark,shaneknapp/spark,dbtsai/spark,narahari92/spark,kiszk/spark,guoxiaolongzte/spark,shubhamchopra/spark,ptkool/spark,milliman/spark,dbtsai/spark,zzcclp/spark,ioana-delaney/spark,JerryLead/spark,dbtsai/spark,eyalfa/spark,nilsgrabbert/spark,ajaysaini725/spark,xuanyuanking/spark,MLnick/spark,mzl9039/spark,shuangshuangwang/spark,eyalfa/spark,jlopezmalla/spark,akopich/spark,bravo-zhang/spark,xflin/spark,maropu/spark,shubhamchopra/spark,srowen/spark,kevinyu98/spark,patrick-nicholson/spark,big-pegasus/spark,spark-test/spark,actuaryzhang/spark,publicRoman/spark,chuckchen/spark,skonto/spark,kiszk/spark,LantaoJin/spark,jianran/spark,zuotingbing/spark,wangyum/spark,kissmetrics/spark,matthewfranglen/spark,facaiy/spark,ibm-research-ireland/sparkoscope,zhouyejoe/spark,esi-mineset/spark,michalsenkyr/spark,xflin/spark,szhem/spark,alunarbeach/spark,nchammas/spark,aosagie/spark,Aegeaner/spark,vinodkc/spark,jiangxb1987/spark,setjet/spark,BryanCutler/spark,bOOm-X/spark,UndeadBaneGitHub/spark,sahilTakiar/spark,minixalpha/spark,ConeyLiu/spark,haowu80s/spark,caneGuy/spark,jkbradley/spark,ajaysaini725/spark,shuangshuangwang/spark,skonto/spark,JerryLead/spark,loneknightpy/spark,hhbyyh/spark,Panos-Bletsos/spark-cost-model-optimizer,apache/spark,tejasapatil/spark,minixalpha/spark,jlopezmalla/spark,zhouyejoe/spark,haowu80s/spark,panfengfeng/spark,wangyum/spark,nchammas/spark,narahari92/spark,ibm-research-ireland/sparkoscope,JoshRosen/spark,sureshthalamati/spark,JerryLead/spark,bdrillard/spark,brad-kaiser/spark,xflin/spark,poffuomo/spark,Panos-Bletsos/spark-cost-model-optimizer,chuckchen/spark,jianran/spark,liyichao/spark,darionyaphet/spark,aray/spark,someorz/spark,darionyaphet/spark,apache-spark-on-k8s/spark,wangmiao1981/spark,kevinyu98/spark,darionyaphet/spark,lxsmnv/spark,jkbradley/spark,ConeyLiu/spark,spark-test/spark,BryanCutler/spark,1haodian/spark,WeichenXu123/spark,bOOm-X/spark,adrian-ionescu/apache-spark,sahilTakiar/spark,chuckchen/spark,sureshthalamati/spark,rezasafi/spark,spark-test/spark,stanzhai/spark,hvanhovell/spark,dhruve/spark,actuaryzhang/spark,SHASHANKB/spark,andrewor14/spark,ahnqirage/spark,taroplus/spark,akopich/spark,wangyum/spark,1haodian/spark,jlopezmalla/spark,darionyaphet/spark,aray/spark,ron8hu/spark,aosagie/spark,highfei2011/spark,caneGuy/spark,hhbyyh/spark,bravo-zhang/spark,dongjoon-hyun/spark,gengliangwang/spark,andrewor14/spark,LantaoJin/spark,ddna1021/spark,map222/spark,lvdongr/spark,loneknightpy/spark,shaneknapp/spark,goldmedal/spark,szhem/spark,patrick-nicholson/spark,ddna1021/spark,joseph-torres/spark,haowu80s/spark,liyichao/spark,Panos-Bletsos/spark-cost-model-optimizer,kissmetrics/spark,bdrillard/spark,shuangshuangwang/spark,SHASHANKB/spark,mdespriee/spark,hhbyyh/spark,aray/spark,ajaysaini725/spark,highfei2011/spark,chuckchen/spark,aray/spark,kevinyu98/spark,witgo/spark,wzhfy/spark,ioana-delaney/spark,techaddict/spark,MLnick/spark,zuotingbing/spark,sachintyagi22/spark,hvanhovell/spark,publicRoman/spark,map222/spark,tengpeng/spark,apache-spark-on-k8s/spark,sureshthalamati/spark,kiszk/spark,yanboliang/spark,hvanhovell/spark,hhbyyh/spark,loneknightpy/spark,haowu80s/spark,wzhfy/spark,goldmedal/spark,ddna1021/spark,srowen/spark,SnappyDataInc/spark,mdespriee/spark,esi-mineset/spark,jrshust/spark,jkbradley/spark,wangmiao1981/spark,1haodian/spark,JoshRosen/spark,loneknightpy/spark,shubhamchopra/spark,caneGuy/spark,mahak/spark,patrick-nicholson/spark,spark-test/spark,liutang123/spark,nchammas/spark,ron8hu/spark,zhouyejoe/spark,debugger87/spark,brad-kaiser/spark,ioana-delaney/spark,map222/spark,SnappyDataInc/spark,spark-test/spark,WindCanDie/spark,nlalevee/spark,lvdongr/spark,Aegeaner/spark,SnappyDataInc/spark,guoxiaolongzte/spark,markhamstra/spark,zero323/spark,rikima/spark,ptkool/spark,cloud-fan/spark,minixalpha/spark,JoshRosen/spark,holdenk/spark,rednaxelafx/apache-spark,rezasafi/spark,big-pegasus/spark,poffuomo/spark,rednaxelafx/apache-spark,huang1900/spark,holdenk/spark,skonto/spark,ueshin/apache-spark,tengpeng/spark,mahak/spark,nchammas/spark,publicRoman/spark,joseph-torres/spark,saltstar/spark,aosagie/spark,saltstar/spark,gengliangwang/spark,jiangxb1987/spark,jrshust/spark,xflin/spark,dongjoon-hyun/spark,janewangfb/spark,actuaryzhang/spark,techaddict/spark,jkbradley/spark,milliman/spark,Aegeaner/spark,esi-mineset/spark,kissmetrics/spark,zhouyejoe/spark,loneknightpy/spark,mahak/spark,zzcclp/spark,panfengfeng/spark,sachintyagi22/spark,taroplus/spark,dhruve/spark,stanzhai/spark,darionyaphet/spark,ericvandenbergfb/spark,huang1900/spark,panfengfeng/spark,sachintyagi22/spark,goldmedal/spark,liyichao/spark,1haodian/spark,liyichao/spark,saturday-shi/spark,alunarbeach/spark,janewangfb/spark,skonto/spark,MLnick/spark,sahilTakiar/spark,jiangxb1987/spark,wangyum/spark,zuotingbing/spark,WeichenXu123/spark,SHASHANKB/spark,MLnick/spark,kimoonkim/spark,darionyaphet/spark,kevinyu98/spark,holdenk/spark,pronix/spark,someorz/spark,jianran/spark,mdespriee/spark,UndeadBaneGitHub/spark,zero323/spark,techaddict/spark,bdrillard/spark,apache/spark,minixalpha/spark,yanboliang/spark,shuangshuangwang/spark,brad-kaiser/spark,witgo/spark,dhruve/spark,hvanhovell/spark,eyalfa/spark,eyalfa/spark,map222/spark,ddna1021/spark,zzcclp/spark,szhem/spark,map222/spark,bOOm-X/spark,skonto/spark,byakuinss/spark,joseph-torres/spark,narahari92/spark,JoshRosen/spark,1haodian/spark,ibm-research-ireland/sparkoscope,pgandhi999/spark,mike0sv/spark,sachintyagi22/spark,rekhajoshm/spark,zero323/spark,bravo-zhang/spark,nlalevee/spark,setjet/spark,panfengfeng/spark,mahak/spark,highfei2011/spark,dhruve/spark,kevinyu98/spark,ddna1021/spark,liyichao/spark,ueshin/apache-spark,ericvandenbergfb/spark,shubhamchopra/spark,nilsgrabbert/spark,someorz/spark,saltstar/spark,gengliangwang/spark,nilsgrabbert/spark,JerryLead/spark,milliman/spark,rednaxelafx/apache-spark,ibm-research-ireland/sparkoscope,mike0sv/spark,xuanyuanking/spark,tejasapatil/spark,loneknightpy/spark,huang1900/spark,wangmiao1981/spark,xflin/spark,publicRoman/spark,WindCanDie/spark,rikima/spark,shuangshuangwang/spark,ahnqirage/spark,saltstar/spark,HyukjinKwon/spark,aokolnychyi/spark,pronix/spark,jrshust/spark,aokolnychyi/spark,sachintyagi22/spark,cin/spark,stanzhai/spark,rednaxelafx/apache-spark,ibm-research-ireland/sparkoscope,actuaryzhang/spark,huang1900/spark,apache-spark-on-k8s/spark,akopich/spark,wzhfy/spark,kimoonkim/spark,eyalfa/spark,LantaoJin/spark,nilsgrabbert/spark,dongjoon-hyun/spark,dhruve/spark,highfei2011/spark,setjet/spark,JoshRosen/spark,aokolnychyi/spark,ericvandenbergfb/spark,facaiy/spark,shuangshuangwang/spark,xuanyuanking/spark,BryanCutler/spark,xflin/spark,wangmiao1981/spark,guoxiaolongzte/spark,debugger87/spark,gioenn/xSpark,mike0sv/spark,techaddict/spark,szhem/spark,dbtsai/spark,facaiy/spark,big-pegasus/spark,saltstar/spark,facaiy/spark,cin/spark,brad-kaiser/spark,kiszk/spark,ajaysaini725/spark,rednaxelafx/apache-spark,LantaoJin/spark,rezasafi/spark,actuaryzhang/spark