Make the directories in the batch file

We can't make them in Python before we run the batch file because the unlink
batch file will just delete them again.
Use abspath