fix doubled directory issue when running generate directly