Fix detectin of existing file being a dir in new script creation, closes #9958
Fix detectin of existing file being a dir in new script creation, closes #9958

FateAce/godot,sanikoyes/godot,ageazrael/godot,sanikoyes/godot,zicklag/godot,godotengine/godot,ex/godot,Shockblast/godot,Valentactive/godot,vnen/godot,vkbsb/godot,NateWardawg/godot,MarianoGnu/godot,MarianoGnu/godot,zicklag/godot,DmitriySalnikov/godot,sanikoyes/godot,firefly2442/godot,vnen/godot,RandomShaper/godot,mcanders/godot,ex/godot,firefly2442/godot,DmitriySalnikov/godot,vnen/godot,vnen/godot,MarianoGnu/godot,ZuBsPaCe/godot,Faless/godot,Brickcaster/godot,pkowal1982/godot,guilhermefelipecgs/godot,zicklag/godot,Brickcaster/godot,guilhermefelipecgs/godot,Paulloz/godot,jejung/godot,FateAce/godot,pkowal1982/godot,akien-mga/godot,groud/godot,MarianoGnu/godot,n-pigeon/godot,pkowal1982/godot,vnen/godot,Valentactive/godot,n-pigeon/godot,BastiaanOlij/godot,godotengine/godot,MarianoGnu/godot,DmitriySalnikov/godot,DmitriySalnikov/godot,BastiaanOlij/godot,Faless/godot,jejung/godot,ZuBsPaCe/godot,ex/godot,BastiaanOlij/godot,jejung/godot,sanikoyes/godot,ex/godot,Zylann/godot,RandomShaper/godot,guilhermefelipecgs/godot,ex/godot,Zylann/godot,DmitriySalnikov/godot,Paulloz/godot,n-pigeon/godot,firefly2442/godot,FateAce/godot,ZuBsPaCe/godot,mcanders/godot,DmitriySalnikov/godot,Zylann/godot,akien-mga/godot,vkbsb/godot,NateWardawg/godot,MarianoGnu/godot,FateAce/godot,Brickcaster/godot,sanikoyes/godot,Zylann/godot,Faless/godot,okamstudio/godot,FateAce/godot,mcanders/godot,Shockblast/godot,honix/godot,Valentactive/godot,NateWardawg/godot,Valentactive/godot,jejung/godot,ZuBsPaCe/godot,vkbsb/godot,vnen/godot,pkowal1982/godot,okamstudio/godot,godotengine/godot,guilhermefelipecgs/godot,josempans/godot,pkowal1982/godot,NateWardawg/godot,ZuBsPaCe/godot,okamstudio/godot,Zylann/godot,Shockblast/godot,Brickcaster/godot,RandomShaper/godot,Shockblast/godot,ageazrael/godot,MarianoGnu/godot,n-pigeon/godot,Valentactive/godot,vkbsb/godot,Shockblast/godot,guilhermefelipecgs/godot,okamstudio/godot,Paulloz/godot,firefly2442/godot,josempans/godot,honix/godot,firefly2442/godot,Valentactive/godot,Shockblast/godot,pkowal1982/godot,vkbsb/godot,okamstudio/godot,firefly2442/godot,vkbsb/godot,n-pigeon/godot,groud/godot,josempans/godot,mcanders/godot,ageazrael/godot,jejung/godot,mcanders/godot,godotengine/godot,BastiaanOlij/godot,Brickcaster/godot,ZuBsPaCe/godot,n-pigeon/godot,NateWardawg/godot,RandomShaper/godot,RandomShaper/godot,guilhermefelipecgs/godot,ZuBsPaCe/godot,godotengine/godot,Valentactive/godot,sanikoyes/godot,ZuBsPaCe/godot,Brickcaster/godot,Zylann/godot,NateWardawg/godot,pkowal1982/godot,akien-mga/godot,ex/godot,josempans/godot,groud/godot,jejung/godot,DmitriySalnikov/godot,ex/godot,n-pigeon/godot,josempans/godot,firefly2442/godot,guilhermefelipecgs/godot,zicklag/godot,okamstudio/godot,sanikoyes/godot,Faless/godot,vkbsb/godot,honix/godot,honix/godot,Paulloz/godot,RandomShaper/godot,vnen/godot,ex/godot,Zylann/godot,RandomShaper/godot,ageazrael/godot,BastiaanOlij/godot,Brickcaster/godot,godotengine/godot,Shockblast/godot,josempans/godot,groud/godot,mcanders/godot,vkbsb/godot,zicklag/godot,akien-mga/godot,guilhermefelipecgs/godot,Faless/godot,Paulloz/godot,godotengine/godot,Faless/godot,okamstudio/godot,ageazrael/godot,okamstudio/godot,FateAce/godot,akien-mga/godot,josempans/godot,vnen/godot,pkowal1982/godot,groud/godot,Paulloz/godot,MarianoGnu/godot,ageazrael/godot,BastiaanOlij/godot,Faless/godot,BastiaanOlij/godot,honix/godot,NateWardawg/godot,josempans/godot,NateWardawg/godot,honix/godot,akien-mga/godot,akien-mga/godot,okamstudio/godot,ageazrael/godot,godotengine/godot,sanikoyes/godot,zicklag/godot,okamstudio/godot,Zylann/godot,Paulloz/godot,Valentactive/godot,akien-mga/godot,NateWardawg/godot,Shockblast/godot,BastiaanOlij/godot,firefly2442/godot,Faless/godot,groud/godot