fixed wrong dir path in generate script