create the output directory it it doesn't already exist

It crashes right now if the expected subdirectory doesn't exist in the local path.