Let's start off by changing our cwd to the specified output folder

And error out of the program in case chdir errors on us (think incorrect
permissions or folder doesn't exist)
Let's create subdirectories
But only if it's in an actually subdirectory..