fixed struc.py to correctly create directory structure