fix command line generation