ensuring that the runtime directory exists before placing the files into them