build.py: Use makedirs to handle creating nested dirs