fixed debug directory creation