Adjust core directory creation