Don't mkdirs when creating file output streams as this makes the intended file a directory