stdlib: Fix filename:basedir/2,3
stdlib: Fix filename:basedir/2,3

Handle the case when the environment APPDATA is not set.

ferd/otp,emacsmirror/erlang,lightcyphers/otp,psyeugenic/otp,kvakvs/otp,uabboli/otp,basho/otp,vladdu/otp,bernardd/otp,legoscia/otp,psyeugenic/otp,tuncer/otp,legoscia/otp,rlipscombe/otp,vladdu/otp,tuncer/otp,massemanet/otp,erlang/otp,bjorng/otp,electricimp/otp,electricimp/otp,potatosalad/otp,weisslj/otp,bugs-erlang-org/otp,mikpe/otp,dgud/otp,vinoski/otp,uabboli/otp,falkevik/otp,emacsmirror/erlang,aboroska/otp,aboroska/otp,dgud/otp,matwey/otp,vinoski/otp,lemenkov/otp,weisslj/otp,g-andrade/otp,ferd/otp,bugs-erlang-org/otp,mikpe/otp,vinoski/otp,rlipscombe/otp,bugs-erlang-org/otp,rlipscombe/otp,goertzenator/otp,vinoski/otp,saleyn/otp,dgud/otp,dumbbell/otp,lemenkov/otp,fenollp/otp,ferd/otp,RoadRunnr/otp,bernardd/otp,release-project/otp,fenollp/otp,emile/otp,weisslj/otp,bernardd/otp,lemenkov/otp,ferd/otp,matwey/otp,emacsmirror/erlang,lemenkov/otp,ahmedshafeeq/otp,massemanet/otp,isvilen/otp,ferd/otp,lightcyphers/otp,cobusc/otp,psyeugenic/otp,jj1bdx/otp,fenollp/otp,getong/otp,rlipscombe/otp,jj1bdx/otp,vladdu/otp,saleyn/otp,potatosalad/otp,saleyn/otp,bsmr-erlang/otp,goertzenator/otp,matwey/otp,bsmr-erlang/otp,getong/otp,fenollp/otp,massemanet/otp,bjorng/otp,emacsmirror/erlang,bernardd/otp,electricimp/otp,falkevik/otp,RaimoNiskanen/otp,aboroska/otp,aboroska/otp,cobusc/otp,dumbbell/otp,uabboli/otp,dgud/otp,legoscia/otp,lemenkov/otp,psyeugenic/otp,isvilen/otp,falkevik/otp,emile/otp,tuncer/otp,falkevik/otp,RoadRunnr/otp,matwey/otp,bugs-erlang-org/otp,bugs-erlang-org/otp,erlang/otp,g-andrade/otp,electricimp/otp,weisslj/otp,bjorng/otp,saleyn/otp,lrascao/otp,weisslj/otp,erlang/otp,rlipscombe/otp,bernardd/otp,bjorng/otp,ferd/otp,ahmedshafeeq/otp,release-project/otp,vinoski/otp,RaimoNiskanen/otp,legoscia/otp,release-project/otp,basho/otp,lrascao/otp,emile/otp,g-andrade/otp,lrascao/otp,release-project/otp,bsmr-erlang/otp,vladdu/otp,legoscia/otp,kvakvs/otp,vinoski/otp,matwey/otp,emacsmirror/erlang,potatosalad/otp,uabboli/otp,dumbbell/otp,dgud/otp,tuncer/otp,jj1bdx/otp,ahmedshafeeq/otp,bsmr-erlang/otp,electricimp/otp,RoadRunnr/otp,rlipscombe/otp,g-andrade/otp,rlipscombe/otp,falkevik/otp,RoadRunnr/otp,bernardd/otp,isvilen/otp,isvilen/otp,jj1bdx/otp,kvakvs/otp,bsmr-erlang/otp,bjorng/otp,massemanet/otp,neeraj9/otp,RoadRunnr/otp,bjorng/otp,legoscia/otp,ahmedshafeeq/otp,falkevik/otp,isvilen/otp,tuncer/otp,cobusc/otp,dumbbell/otp,bjorng/otp,vladdu/otp,kvakvs/otp,saleyn/otp,goertzenator/otp,erlang/otp,isvilen/otp,aboroska/otp,release-project/otp,jj1bdx/otp,lemenkov/otp,vladdu/otp,uabboli/otp,weisslj/otp,goertzenator/otp,goertzenator/otp,bsmr-erlang/otp,erlang/otp,bjorng/otp,basho/otp,cobusc/otp,dgud/otp,g-andrade/otp,basho/otp,weisslj/otp,ahmedshafeeq/otp,emacsmirror/erlang,RoadRunnr/otp,kvakvs/otp,potatosalad/otp,potatosalad/otp,bugs-erlang-org/otp,getong/otp,bugs-erlang-org/otp,isvilen/otp,goertzenator/otp,lrascao/otp,lightcyphers/otp,bjorng/otp,legoscia/otp,electricimp/otp,emile/otp,falkevik/otp,release-project/otp,erlang/otp,massemanet/otp,rlipscombe/otp,massemanet/otp,vinoski/otp,saleyn/otp,saleyn/otp,lemenkov/otp,kvakvs/otp,lrascao/otp,neeraj9/otp,goertzenator/otp,erlang/otp,basho/otp,neeraj9/otp,vinoski/otp,bjorng/otp,RaimoNiskanen/otp,potatosalad/otp,psyeugenic/otp,uabboli/otp,rlipscombe/otp,mikpe/otp,mikpe/otp,vladdu/otp,fenollp/otp,dgud/otp,jj1bdx/otp,matwey/otp,lightcyphers/otp,dumbbell/otp,RaimoNiskanen/otp,lightcyphers/otp,neeraj9/otp,RaimoNiskanen/otp,getong/otp,basho/otp,dgud/otp,dumbbell/otp,vladdu/otp,jj1bdx/otp,dumbbell/otp,kvakvs/otp,mikpe/otp,RaimoNiskanen/otp,ahmedshafeeq/otp,basho/otp,massemanet/otp,ferd/otp,electricimp/otp,potatosalad/otp,uabboli/otp,emacsmirror/erlang,jj1bdx/otp,fenollp/otp,erlang/otp,getong/otp,psyeugenic/otp,emile/otp,mikpe/otp,g-andrade/otp,psyeugenic/otp,vinoski/otp,isvilen/otp,emacsmirror/erlang,fenollp/otp,mikpe/otp,getong/otp,fenollp/otp,kvakvs/otp,g-andrade/otp,uabboli/otp,electricimp/otp,aboroska/otp,falkevik/otp,emile/otp,release-project/otp,cobusc/otp,cobusc/otp,psyeugenic/otp,lrascao/otp,kvakvs/otp,RaimoNiskanen/otp,getong/otp,lightcyphers/otp,getong/otp,isvilen/otp,dumbbell/otp,falkevik/otp,potatosalad/otp,mikpe/otp,g-andrade/otp,tuncer/otp,lrascao/otp,RoadRunnr/otp,cobusc/otp,dumbbell/otp,legoscia/otp,tuncer/otp,lightcyphers/otp,basho/otp,neeraj9/otp,bugs-erlang-org/otp,emacsmirror/erlang,jj1bdx/otp,RoadRunnr/otp,bernardd/otp,dumbbell/otp,bsmr-erlang/otp,electricimp/otp,bsmr-erlang/otp,emile/otp,emacsmirror/erlang,bsmr-erlang/otp,emile/otp,emile/otp,rlipscombe/otp,isvilen/otp,vinoski/otp,basho/otp,ferd/otp,goertzenator/otp,lrascao/otp,massemanet/otp,neeraj9/otp,mikpe/otp,aboroska/otp,matwey/otp,weisslj/otp,release-project/otp,erlang/otp,tuncer/otp,ahmedshafeeq/otp,mikpe/otp,jj1bdx/otp,neeraj9/otp,getong/otp,potatosalad/otp,g-andrade/otp,vladdu/otp,goertzenator/otp,cobusc/otp,erlang/otp,release-project/otp,aboroska/otp,matwey/otp,bernardd/otp,getong/otp,uabboli/otp,ahmedshafeeq/otp,RoadRunnr/otp,lightcyphers/otp,tuncer/otp,RaimoNiskanen/otp,aboroska/otp,weisslj/otp,g-andrade/otp,ferd/otp,dgud/otp,saleyn/otp,bernardd/otp,fenollp/otp,massemanet/otp,lrascao/otp,dgud/otp,potatosalad/otp,saleyn/otp,matwey/otp,neeraj9/otp,ahmedshafeeq/otp,lemenkov/otp,legoscia/otp,RaimoNiskanen/otp