Fixing mkdir

Some weird issues with RCurl options. writeFile currently won't work.